--- /dev/null
+hostname r1
+log timestamp precision 6
+agentx
+!
+interface lo
+ ip address 1.1.1.1/32
+ ip router isis ISIS1
+ ipv6 address 2000:1:1:1::1/128
+ ipv6 router isis ISIS1
+ isis circuit-type level-1
+ isis passive
+ no isis hello padding
+exit
+!
+interface r1-eth0
+ ip address 192.168.12.12/24
+ ip ospf area 0.0.0.0
+ ip router isis ISIS1
+ ipv6 address 2000:1:1:12::12/64
+ ipv6 ospf6 area 0.0.0.0
+ ipv6 router isis ISIS1
+ isis circuit-type level-1
+ isis hello-interval 1
+ isis network point-to-point
+ no isis hello padding
+exit
+!
+interface r1-eth1
+ ip address 192.168.13.13/24
+ ip ospf area 0.0.0.0
+ ip router isis ISIS1
+ ipv6 address 2000:1:1:13::13/64
+ ipv6 ospf6 area 0.0.0.0
+ ipv6 router isis ISIS1
+ isis circuit-type level-1
+ isis hello-interval 1
+ isis network point-to-point
+ no isis hello padding
+exit
+!
+interface r1-eth2
+ ip address 192.168.14.14/24
+ ip ospf area 0.0.0.0
+ ip router isis ISIS1
+ ipv6 address 2000:1:1:14::14/64
+ ipv6 ospf6 area 0.0.0.0
+ ipv6 router isis ISIS1
+ isis circuit-type level-1
+ isis hello-interval 1
+ isis network point-to-point
+ no isis hello padding
+exit
+!
+router rip
+ network 0.0.0.0/0
+ redistribute local
+exit
+!
+router bgp 100
+ bgp router-id 1.1.1.1
+exit
+!
+router ospf
+ redistribute local
+exit
+!
+router ospf6
+ redistribute local
+exit
+!
+router isis ISIS1
+ is-type level-1
+ net 01.1111.0000.0000.0001.00
+ topology ipv6-unicast
+exit
+!
+end
+++ /dev/null
-log stdout debugging
-!
-! debug isis route-events
-! debug isis events
-!
-agentx
-!
-interface r1-eth0
- ip router isis ISIS1
- ipv6 router isis ISIS1
- isis circuit-type level-1
- no isis hello padding
- isis hello-interval 1
- isis hello-multiplier 10
- isis network point-to-point
-!
-interface r1-eth1
- ip router isis ISIS1
- ipv6 router isis ISIS1
- isis circuit-type level-1
- no isis hello padding
- isis hello-interval 1
- isis hello-multiplier 10
- isis network point-to-point
-!
-interface r1-eth2
- ip router isis ISIS1
- ipv6 router isis ISIS1
- isis circuit-type level-1
- no isis hello padding
- isis hello-interval 1
- isis hello-multiplier 10
- isis network point-to-point
-!
-interface lo
- ip router isis ISIS1
- ipv6 router isis ISIS1
- isis circuit-type level-1
- isis passive
- no isis hello padding
-!
-router isis ISIS1
- net 01.1111.0000.0000.0001.00
- is-type level-1
- topology ipv6-unicast
-!
-line vty
-!
# For all registered routers, load the zebra configuration file
for rname, router in router_list.items():
- router.load_config(
- TopoRouter.RD_ZEBRA,
- os.path.join(CWD, "{}/zebra.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_ISIS,
- os.path.join(CWD, "{}/isisd.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_BGP,
- os.path.join(CWD, "{}/bgpd.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_RIP,
- os.path.join(CWD, "{}/ripd.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_OSPF,
- os.path.join(CWD, "{}/ospfd.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_OSPF6,
- os.path.join(CWD, "{}/ospf6d.conf".format(rname)),
- "-M snmp",
- )
- router.load_config(
- TopoRouter.RD_SNMP,
- os.path.join(CWD, "{}/snmpd.conf".format(rname)),
- "-Le -Ivacm_conf,usmConf,iquery -V -DAgentX,trap",
+ router.load_frr_config(
+ os.path.join(CWD, "{}/frr.conf".format(rname)),
+ [
+ (TopoRouter.RD_ZEBRA, "-M snmp"),
+ (TopoRouter.RD_ISIS, "-M snmp"),
+ (TopoRouter.RD_BGP, "-M snmp"),
+ (TopoRouter.RD_RIP, "-M snmp"),
+ (TopoRouter.RD_OSPF, "-M snmp"),
+ (TopoRouter.RD_OSPF6, "-M snmp"),
+ ],
)
+ router.load_config(TopoRouter.RD_SNMP,
+ os.path.join(CWD, "{}/snmpd.conf".format(rname)),
+ "-Le -Ivacm_conf,usmConf,iquery -V -DAgentX,trap")
+
# After loading the configurations, this function loads configured daemons.
tgen.start_router()
)
assert r1_snmp.test_oid("ISIS-MIB::isisSysVersion", "one(1)")
- # rip is not auto-loading agentx from mgmtd
- # assert r1_snmp.test_oid("RIPv2-MIB::rip2GlobalQueries", "0")
+
+ assert r1_snmp.test_oid("RIPv2-MIB::rip2GlobalQueries", "0")
assert r1_snmp.test_oid("OSPF-MIB::ospfVersionNumber", "version2(2)")
assert r1_snmp.test_oid("OSPFV3-MIB::ospfv3VersionNumber", "version3(3)")