Skip to content

Commit

Permalink
[JIRA SONIC-9316]
Browse files Browse the repository at this point in the history
KLISH Cli changes for supporting Arp & ND Suppress over Vxlan Tunnel.
Below link has more details of this feature & ongoing discussions with community.
sonic-net/SONiC#437

Change-Id: Iefe006ad7803f34bb56730e0779076d67d40ffae
  • Loading branch information
kananthak committed Oct 29, 2019
1 parent 89c211d commit 6acf6d3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
17 changes: 16 additions & 1 deletion models/yang/sonic/sonic-vxlan.yang
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ module sonic-vxlan {
}
}
}
}
container SUPPRESS_VLAN_NEIGH {

list SUPPRESS_VLAN_NEIGH_LIST {
key "name";

leaf name {
type string;
}
leaf suppress {
type string;
}

}
}

}

}
12 changes: 12 additions & 0 deletions src/CLI/actioner/sonic-cli-vxlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ def generate_body(func, args):
elif func.__name__ == 'delete_sonic_vxlan_sonic_vxlan_vxlan_tunnel':
#keypath = [ args[0][5:] ]
keypath = []
elif func.__name__ == 'patch_list_sonic_vxlan_sonic_vxlan_suppress_vlan_neigh_suppress_vlan_neigh_list':
keypath = []
body = {
"sonic-vxlan:SUPPRESS_VLAN_NEIGH_LIST": [
{
"name": args[0],
"suppress": 'on'
}
]
}
elif func.__name__ == 'delete_sonic_vxlan_sonic_vxlan_suppress_vlan_neigh_suppress_vlan_neigh_list':
keypath = [ args[0] ]
elif func.__name__ == 'patch_list_sonic_vxlan_sonic_vxlan_evpn_nvo_evpn_nvo_list':
keypath = []
body = {
Expand Down
13 changes: 12 additions & 1 deletion src/CLI/clitree/cli-xml/interface.xml
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,18 @@ limitations under the License.
name="no mtu"
help="Remove MTU of Vlan interface">
<ACTION>python $SONIC_CLI_ROOT/sonic-cli-if.py patch_openconfig_interfaces_interfaces_interface_config_mtu ${vlan_id} 9100 </ACTION>
</COMMAND>
</COMMAND>
<COMMAND
name="no neigh_suppress"
help="Disable Arp and ND Suppression">
<ACTION> python $SONIC_CLI_ROOT/sonic-cli-vxlan.py delete_sonic_vxlan_sonic_vxlan_suppress_vlan_neigh_suppress_vlan_neigh_list ${vlan_id} </ACTION>
</COMMAND>
<COMMAND
name="neigh_suppress"
help="Enable Arp and ND Suppression">
<ACTION> python $SONIC_CLI_ROOT/sonic-cli-vxlan.py patch_list_sonic_vxlan_sonic_vxlan_suppress_vlan_neigh_suppress_vlan_neigh_list ${vlan_id}
</ACTION>
</COMMAND>
<COMMAND
name="shutdown"
help="Disable the Vlan interface">
Expand Down

0 comments on commit 6acf6d3

Please sign in to comment.