Commit 7744c8d 1 parent e23c5ee commit 7744c8d Copy full SHA for 7744c8d
File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,15 @@ def main():
42
42
43
43
try :
44
44
fdb = FdbClear ()
45
- if args .vlan is not None :
46
- print ("command not supported yet." )
45
+ if args .vlan is not None and args .port is not None :
46
+ fdb .send_notification ("PORTVLAN" , args .port + '|' + args .vlan )
47
+ print ("Port {} + Vlan{} FDB entries are cleared." .format (args .port , args .vlan ))
48
+ elif args .vlan is not None :
49
+ fdb .send_notification ("VLAN" , args .vlan )
50
+ print ("Vlan{} FDB entries are cleared." .format (args .vlan ))
47
51
elif args .port is not None :
48
- print ("command not supported yet." )
52
+ fdb .send_notification ("PORT" , args .port )
53
+ print ("Port {} FDB entries are cleared." .format (args .port ))
49
54
else :
50
55
fdb .send_notification ("ALL" , "ALL" )
51
56
print ("FDB entries are cleared." )
You can’t perform that action at this time.
0 commit comments