You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: templates/route_down-Debian.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
#
5
5
if [ "$IFACE"="<%= @interface -%>" ] || [ "$IFACE"="--all" ];then
6
6
<%- (0..(@ipaddress.length-1)).each do|id| -%>
7
-
if ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route show <%- if @table and @table[id] -%> table <%= @table[id] %><% end %>| grep -qF"<%= @ipaddress[id] %><%- if @_cidr and @_cidr[id] and @_cidr[id] != 32 -%>/<%= @_cidr[id] %><%- end -%> "
7
+
if ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route show <%- if @table and @table[id] -%> table <%= @table[id] %><% end %>| grep -qP"<%= @ipaddress[id] %><%- if @_cidr and @_cidr[id] and @_cidr[id] != 32 -%>/<%= @_cidr[id] %><%- if @ipaddress[id] == '0.0.0.0' and @_cidr[id] == 0 %>|default<%- end %><%- end -%> "
8
8
then
9
9
ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route del <%= @ipaddress[id] %>/<%= @_cidr[id] %><%- if @gateway and @gateway[id] -%> via <%= @gateway[id] %><%- end -%> dev <%= @interface %><%- if @scope and @scope[id] -%> scope <%= @scope[id] %><%- end -%><%- if @source and @source[id] -%> src <%= @source[id] %><%- end -%><%- if @table and @table[id] -%> table <%= @table[id] %><% end %><%- if @metric and @metric[id] -%> metric <%= @metric[id] %><% end %><%- if @mtu and @mtu[id] -%> mtu <%= @mtu[id] %><% end %>
Copy file name to clipboardExpand all lines: templates/route_up-Debian.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
#
5
5
if [ "$IFACE"="<%= @interface -%>" ] || [ "$IFACE"="--all" ];then
6
6
<%- (0..(@ipaddress.length-1)).each do|id| -%>
7
-
if! ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route show <%- if @table and @table[id] -%> table <%= @table[id] %><% end %>| grep -qF"<%= @ipaddress[id] %><%- if @_cidr and @_cidr[id] and @_cidr[id] != 32 -%>/<%= @_cidr[id] %><%- end -%> "
7
+
if! ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route show <%- if @table and @table[id] -%> table <%= @table[id] %><% end %>| grep -qP"<%= @ipaddress[id] %><%- if @_cidr and @_cidr[id] and @_cidr[id] != 32 -%>/<%= @_cidr[id] %><%- if @ipaddress[id] == '0.0.0.0' and @_cidr[id] == 0 %>|default<%- end %><%- end -%> "
8
8
then
9
9
ip<%- if @family and @family[id] == 'inet6' -%> -6<%- end -%> route add <%= @ipaddress[id] %>/<%= @_cidr[id] %><%- if @gateway and @gateway[id] -%> via <%= @gateway[id] %><%- end -%> dev <%= @interface %><%- if @scope and @scope[id] -%> scope <%= @scope[id] %><%- end -%><%- if @source and @source[id] -%> src <%= @source[id] %><%- end -%><%- if @table and @table[id] -%> table <%= @table[id] %><% end %><%- if @metric and @metric[id] -%> metric <%= @metric[id] %><% end %><%- if @mtu and @mtu[id] -%> mtu <%= @mtu[id] %><% end %>
0 commit comments