-
Notifications
You must be signed in to change notification settings - Fork 0
Useful OpenSwitch commands
Default GW: 172.17.0.1
First openswitch: ssh admin@172.17.0.2
Second openswitch: ssh admin@172.17.0.3
docker exec -it <CONTAINER_ID> bash
/sbin/ip netns exec swns ifconfig
/sbin/ip netns exec swns ip route
/sbin/ip netns exec swns /usr/sbin/tcpdump -nvli <eth_name>
/sbin/ip netns exec swns /usr/sbin/tcpdump -vvv -i
/opt/openvswitch/bin/ovs-vsctl list port bridge_normal
/opt/openvswitch/bin/ovs-appctl -t /run/openvswitch-sim/ovs-vswitchd-sim..ctl fdb/show bridge_normal
/opt/openvswitch/bin/ovs-ofctl dump-ports bridge_normal
/opt/openvswitch/bin/ovs-ofctl show bridge_normal
/opt/openvswitch/bin/ovs-appctl -t /run/openvswitch-sim/ovs-vswitchd-sim.<>.ctl dpif/dump-flows bridge_normal
/opt/openvswitch/bin/ovs-vsctl/list
/usr/bin/ovsdb-client dump OpenSwitch tablename
- Go to ops-build/yocto directory
- Find the required .service file, for example for zebra it is ops-zebra.service
- Modify ExecStart parameters: vFILE:DBG will provide maximum level of logging into separate log file, specified by parameter --log-file=path-to-log-file
- Rebuild the image