cfgmgr debug CLI for vlan, intf and switch#362
cfgmgr debug CLI for vlan, intf and switch#362jipanyang wants to merge 1 commit intosonic-net:masterfrom
Conversation
|
Some examples: root@sonic:~# cfgmgr root@sonic:~# cfgmgr vlan Usage: cfgmgr vlan { add | del } vlan VLAN_ID [ { down | up } ] Usage: cfgmgr intf { add | del } PREFIX dev IFNAME root@sonic: Usage: cfgmgr switch update root@sonic: VLAN|Vlan1000 VLAN_MEMBER|Vlan1000|Ethernet8 VLAN_MEMBER|Vlan1000|Ethernet20 VLAN_MEMBER|Vlan1000|Ethernet16 VLAN_MEMBER|Vlan2000|PortChannel47 VLAN_MEMBER|Vlan1000|Ethernet12 root@sonic: VLAN_INTERFACE|Vlan2000|172.16.18.190/24 LOOPBACK_INTERFACE|Loopback0|100.0.0.37/32 INTERFACE|Ethernet16|0.0.0.0/32 root@sonic:~# cfgmgr intf show state dev Vlan2000 |
4503775 to
2688bd4
Compare
|
can we do this in sonic-utilities? in show/config commands |
Signed-off-by: Jipan Yang <[email protected]>
2688bd4 to
31ab4b8
Compare
|
@JipanYanga Are you still working on this? @lguohan using |
|
@ishidawataru I wrote the debug commands in c++ when the python swsssdk support was not there yet. To be consistent with the rest of the system, it is better to implement more official commands in python using sonic-py-swsssdk. The task is in my to-do list, but I have not put much effort on it yet. I appreciate it very much if you take over the work. Thanks! |
|
@JipanYanga Got it. I'll work on this. |
|
@JipanYanga Just opened a PR for VLAN CLI. |
|
addressed in sonic-net/sonic-utilities#151 |
* Add support for attribute capability query in lua script * Rename query_response to response
Signed-off-by: Jipan Yang [email protected]
What I did
Debug CLI for configuring vlan, intf and switch to configDB
Why I did it
Verifying VLAN, intf and switch config through configDB
How I verified it
vlan, ip over vlan may be configured via the debug cli and work.
Details if related