File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -809,6 +809,8 @@ def add(ctx, ip_addr):
809
809
config_db .set_entry ("INTERFACE" , (interface_name , ip_addr ), {"NULL" : "NULL" })
810
810
elif interface_name .startswith ("PortChannel" ):
811
811
config_db .set_entry ("PORTCHANNEL_INTERFACE" , (interface_name , ip_addr ), {"NULL" : "NULL" })
812
+ elif interface_name .startswith ("Vlan" ):
813
+ config_db .set_entry ("VLAN_INTERFACE" , (interface_name , ip_addr ), {"NULL" : "NULL" })
812
814
813
815
#
814
816
# 'del' subcommand
@@ -826,6 +828,8 @@ def remove(ctx, ip_addr):
826
828
config_db .set_entry ("INTERFACE" , (interface_name , ip_addr ), None )
827
829
elif interface_name .startswith ("PortChannel" ):
828
830
config_db .set_entry ("PORTCHANNEL_INTERFACE" , (interface_name , ip_addr ), None )
831
+ elif interface_name .startswith ("Vlan" ):
832
+ config_db .set_entry ("VLAN_INTERFACE" , (interface_name , ip_addr ), None )
829
833
830
834
#
831
835
# 'acl' group ('config acl ...')
You can’t perform that action at this time.
0 commit comments