我正在 Open vSwitch 中实现 RSTP。我正在按如下方式配置网桥:
ovs-vsctl set Port eth0 other_config:rstp-port-priority=32
ovs-vsctl set Port eth0 other_config:rstp-port-num=3
ovs-vsctl set Port eth0 other_config:rstp-path-cost=150
ovs-vsctl set Port eth0 other_config:rstp-port-admin-edge=true
ovs-vsctl set Port eth0 other_config:rstp-port-auto-edge=true`
我如何查看或检查上述配置,就像在 cisco 交换机中一样,我可以通过 switch# show spanning-tree 查看。
在 OVS 数据库中,这些条目如下所示:
RSTP Status:
rstp_status : rstp_bridge_id, optional string
rstp_status : rstp_root_id, optional string
rstp_status : rstp_root_path_cost, optional string, containing an
integer, at least 0
rstp_status : rstp_designated_id, optional string,
rstp_status : rstp_designated_port_id, optional string
rstp_status : rstp_bridge_port_id, optional string
如何从数据库或表中读取?