summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_snmp_bgp4v2mib/r2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/bgp_snmp_bgp4v2mib/r2')
-rw-r--r--tests/topotests/bgp_snmp_bgp4v2mib/r2/bgpd.conf18
-rw-r--r--tests/topotests/bgp_snmp_bgp4v2mib/r2/snmpd.conf9
-rw-r--r--tests/topotests/bgp_snmp_bgp4v2mib/r2/snmptrapd.conf2
3 files changed, 21 insertions, 8 deletions
diff --git a/tests/topotests/bgp_snmp_bgp4v2mib/r2/bgpd.conf b/tests/topotests/bgp_snmp_bgp4v2mib/r2/bgpd.conf
index cf0013e..55686f4 100644
--- a/tests/topotests/bgp_snmp_bgp4v2mib/r2/bgpd.conf
+++ b/tests/topotests/bgp_snmp_bgp4v2mib/r2/bgpd.conf
@@ -5,18 +5,20 @@ router bgp 65002
no bgp ebgp-requires-policy
no bgp network import-check
no bgp default ipv4-unicast
- neighbor 192.168.12.1 remote-as external
- neighbor 192.168.12.1 timers 1 3
- neighbor 192.168.12.1 timers connect 1
- neighbor 2001:db8::12:1 remote-as external
- neighbor 2001:db8::12:1 timers 1 3
- neighbor 2001:db8::12:1 timers connect 1
+ neighbor 192.168.12.4 remote-as external
+ neighbor 192.168.12.4 timers 1 3
+ neighbor 192.168.12.4 timers connect 1
+ neighbor 2001:db8::12:4 remote-as external
+ neighbor 2001:db8::12:4 timers 1 3
+ neighbor 2001:db8::12:4 timers connect 1
!
address-family ipv4 unicast
- neighbor 192.168.12.1 activate
+ neighbor 192.168.12.4 activate
+ neighbor 192.168.12.4 addpath-tx-all-paths
+
exit-address-family
address-family ipv6 unicast
- neighbor 2001:db8::12:1 activate
+ neighbor 2001:db8::12:4 activate
exit-address-family
!
agentx
diff --git a/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmpd.conf b/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmpd.conf
index 032b93b..f0957cc 100644
--- a/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmpd.conf
+++ b/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmpd.conf
@@ -6,6 +6,15 @@ access public_group "" any noauth prefix all all none
rocommunity public default
+trapsess -v2c -c public 127.0.0.1
+
+notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus
+notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus ifOperStatus
+
+monitor -r 2 -e linkUpTrap "Generate linkUp" ifOperStatus != 2
+monitor -r 2 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
+
+
view all included .1
iquerySecName frr
diff --git a/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmptrapd.conf b/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmptrapd.conf
new file mode 100644
index 0000000..f6e4abf
--- /dev/null
+++ b/tests/topotests/bgp_snmp_bgp4v2mib/r2/snmptrapd.conf
@@ -0,0 +1,2 @@
+authCommunity net,log public
+disableAuthorization yes