We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e23c5ee commit 7744c8dCopy full SHA for 7744c8d
scripts/fdbclear
100644
100755
@@ -42,10 +42,15 @@ def main():
42
43
try:
44
fdb = FdbClear()
45
- if args.vlan is not None:
46
- print("command not supported yet.")
+ if args.vlan is not None and args.port is not None:
+ 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))
51
elif args.port is not None:
52
+ fdb.send_notification("PORT", args.port)
53
+ print("Port {} FDB entries are cleared.".format(args.port))
54
else:
55
fdb.send_notification("ALL", "ALL")
56
print("FDB entries are cleared.")
0 commit comments