Commit d80d9296 authored by Simon Redman's avatar Simon Redman

Add sysctl command to un-block seg6 forwarding for all interfaces

parent 95289b82
......@@ -33,7 +33,7 @@ SYSCTL_COMMAND_TEMPLATE = "sudo sysctl {lines}"
SYSCTL_SEG6_LINE_TEMPLATE = "net.ipv6.conf.{iface}.seg6_enabled=1"
def build_srg6_sysctl_command(interfaces: List[str]):
def build_seg6_sysctl_command(interfaces: List[str]):
Construct the sysctl command to enable segment routing on all of the listed interfaces
......@@ -60,7 +60,8 @@ def build_seg6_sysctl_commands_for_network(netgraph, ignore_nodes: List[str]=[])
for host in netgraph.nodes:
if host in ignore_nodes: continue
interfaces = netgraph._node[host]['interfaces'].keys()
interfaces.append('all') # Also configure to not disallow seg6 forwarding system-wide
return commands
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment