mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
test: add br1 to sysrepo emulator
Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
committed by
Tobias Waldekranz
parent
6ad80c80ab
commit
0937921cbc
@@ -5,7 +5,7 @@ ROOT_PATH="$SCRIPT_PATH/../../../"
|
||||
|
||||
YANGER_TOOL="$ROOT_PATH/board/netconf/rootfs/libexec/infix/yanger"
|
||||
|
||||
INTERFACES="br0 e0 e1 e2 e3 e4"
|
||||
INTERFACES="br0 br1 e0 e1 e2 e3 e4"
|
||||
|
||||
INTERFACE_OUTPUT_FILE="$(mktemp)"
|
||||
INTERFACES_OUTPUT_FILE="$(mktemp)"
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
[
|
||||
{
|
||||
"ifindex": 8,
|
||||
"ifname": "br1",
|
||||
"flags": [
|
||||
"BROADCAST",
|
||||
"MULTICAST",
|
||||
"UP",
|
||||
"LOWER_UP"
|
||||
],
|
||||
"mtu": 1500,
|
||||
"qdisc": "noqueue",
|
||||
"operstate": "UP",
|
||||
"group": "default",
|
||||
"txqlen": 1000,
|
||||
"link_type": "ether",
|
||||
"address": "02:00:00:00:00:02",
|
||||
"broadcast": "ff:ff:ff:ff:ff:ff",
|
||||
"promiscuity": 0,
|
||||
"allmulti": 0,
|
||||
"min_mtu": 68,
|
||||
"max_mtu": 65535,
|
||||
"linkinfo": {
|
||||
"info_kind": "bridge",
|
||||
"info_data": {
|
||||
"forward_delay": 1500,
|
||||
"hello_time": 200,
|
||||
"max_age": 2000,
|
||||
"ageing_time": 30000,
|
||||
"stp_state": 0,
|
||||
"priority": 32768,
|
||||
"vlan_filtering": 1,
|
||||
"vlan_protocol": "802.1Q",
|
||||
"bridge_id": "8000.2:0:0:0:0:2",
|
||||
"root_id": "8000.2:0:0:0:0:2",
|
||||
"root_port": 0,
|
||||
"root_path_cost": 0,
|
||||
"topology_change": 0,
|
||||
"topology_change_detected": 0,
|
||||
"hello_timer": 0.00,
|
||||
"tcn_timer": 0.00,
|
||||
"topology_change_timer": 0.00,
|
||||
"gc_timer": 0.00,
|
||||
"vlan_default_pvid": 0,
|
||||
"vlan_stats_enabled": 0,
|
||||
"vlan_stats_per_port": 0,
|
||||
"group_fwd_mask": "0",
|
||||
"group_addr": "01:80:c2:00:00:00",
|
||||
"mcast_snooping": 0,
|
||||
"no_linklocal_learn": 0,
|
||||
"mcast_vlan_snooping": 0,
|
||||
"mcast_router": 1,
|
||||
"mcast_query_use_ifaddr": 0,
|
||||
"mcast_querier": 0,
|
||||
"mcast_hash_elasticity": 16,
|
||||
"mcast_hash_max": 4096,
|
||||
"mcast_last_member_cnt": 2,
|
||||
"mcast_startup_query_cnt": 2,
|
||||
"mcast_last_member_intvl": 100,
|
||||
"mcast_membership_intvl": 26000,
|
||||
"mcast_querier_intvl": 25500,
|
||||
"mcast_query_intvl": 12500,
|
||||
"mcast_query_response_intvl": 1000,
|
||||
"mcast_startup_query_intvl": 3124,
|
||||
"mcast_stats_enabled": 0,
|
||||
"mcast_igmp_version": 2,
|
||||
"mcast_mld_version": 1,
|
||||
"nf_call_iptables": 0,
|
||||
"nf_call_ip6tables": 0,
|
||||
"nf_call_arptables": 0
|
||||
}
|
||||
},
|
||||
"num_tx_queues": 1,
|
||||
"num_rx_queues": 1,
|
||||
"gso_max_size": 65536,
|
||||
"gso_max_segs": 65535,
|
||||
"tso_max_size": 65536,
|
||||
"tso_max_segs": 65535,
|
||||
"gro_max_size": 65536,
|
||||
"addr_info": [],
|
||||
"stats64": {
|
||||
"rx": {
|
||||
"bytes": 0,
|
||||
"packets": 0,
|
||||
"errors": 0,
|
||||
"dropped": 0,
|
||||
"over_errors": 0,
|
||||
"multicast": 0
|
||||
},
|
||||
"tx": {
|
||||
"bytes": 0,
|
||||
"packets": 0,
|
||||
"errors": 0,
|
||||
"dropped": 0,
|
||||
"carrier_errors": 0,
|
||||
"collisions": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,101 @@
|
||||
[
|
||||
{
|
||||
"ifindex": 8,
|
||||
"ifname": "br1",
|
||||
"flags": [
|
||||
"BROADCAST",
|
||||
"MULTICAST",
|
||||
"UP",
|
||||
"LOWER_UP"
|
||||
],
|
||||
"mtu": 1500,
|
||||
"qdisc": "noqueue",
|
||||
"operstate": "UP",
|
||||
"linkmode": "DEFAULT",
|
||||
"group": "default",
|
||||
"txqlen": 1000,
|
||||
"link_type": "ether",
|
||||
"address": "02:00:00:00:00:02",
|
||||
"broadcast": "ff:ff:ff:ff:ff:ff",
|
||||
"promiscuity": 0,
|
||||
"allmulti": 0,
|
||||
"min_mtu": 68,
|
||||
"max_mtu": 65535,
|
||||
"linkinfo": {
|
||||
"info_kind": "bridge",
|
||||
"info_data": {
|
||||
"forward_delay": 1500,
|
||||
"hello_time": 200,
|
||||
"max_age": 2000,
|
||||
"ageing_time": 30000,
|
||||
"stp_state": 0,
|
||||
"priority": 32768,
|
||||
"vlan_filtering": 1,
|
||||
"vlan_protocol": "802.1Q",
|
||||
"bridge_id": "8000.2:0:0:0:0:2",
|
||||
"root_id": "8000.2:0:0:0:0:2",
|
||||
"root_port": 0,
|
||||
"root_path_cost": 0,
|
||||
"topology_change": 0,
|
||||
"topology_change_detected": 0,
|
||||
"hello_timer": 0.00,
|
||||
"tcn_timer": 0.00,
|
||||
"topology_change_timer": 0.00,
|
||||
"gc_timer": 53.73,
|
||||
"vlan_default_pvid": 0,
|
||||
"vlan_stats_enabled": 0,
|
||||
"vlan_stats_per_port": 0,
|
||||
"group_fwd_mask": "0",
|
||||
"group_addr": "01:80:c2:00:00:00",
|
||||
"mcast_snooping": 0,
|
||||
"no_linklocal_learn": 0,
|
||||
"mcast_vlan_snooping": 0,
|
||||
"mcast_router": 1,
|
||||
"mcast_query_use_ifaddr": 0,
|
||||
"mcast_querier": 0,
|
||||
"mcast_hash_elasticity": 16,
|
||||
"mcast_hash_max": 4096,
|
||||
"mcast_last_member_cnt": 2,
|
||||
"mcast_startup_query_cnt": 2,
|
||||
"mcast_last_member_intvl": 100,
|
||||
"mcast_membership_intvl": 26000,
|
||||
"mcast_querier_intvl": 25500,
|
||||
"mcast_query_intvl": 12500,
|
||||
"mcast_query_response_intvl": 1000,
|
||||
"mcast_startup_query_intvl": 3124,
|
||||
"mcast_stats_enabled": 0,
|
||||
"mcast_igmp_version": 2,
|
||||
"mcast_mld_version": 1,
|
||||
"nf_call_iptables": 0,
|
||||
"nf_call_ip6tables": 0,
|
||||
"nf_call_arptables": 0
|
||||
}
|
||||
},
|
||||
"inet6_addr_gen_mode": "none",
|
||||
"num_tx_queues": 1,
|
||||
"num_rx_queues": 1,
|
||||
"gso_max_size": 65536,
|
||||
"gso_max_segs": 65535,
|
||||
"tso_max_size": 65536,
|
||||
"tso_max_segs": 65535,
|
||||
"gro_max_size": 65536,
|
||||
"stats64": {
|
||||
"rx": {
|
||||
"bytes": 0,
|
||||
"packets": 0,
|
||||
"errors": 0,
|
||||
"dropped": 0,
|
||||
"over_errors": 0,
|
||||
"multicast": 0
|
||||
},
|
||||
"tx": {
|
||||
"bytes": 0,
|
||||
"packets": 0,
|
||||
"errors": 0,
|
||||
"dropped": 0,
|
||||
"carrier_errors": 0,
|
||||
"collisions": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user