-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_bgp_config for Cisco when no BGP is configured (#1910)
- Loading branch information
Showing
3 changed files
with
175 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/ios/mocked_data/test_get_bgp_config/no_bgp/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
150 changes: 150 additions & 0 deletions
150
test/ios/mocked_data/test_get_bgp_config/no_bgp/show_running_config.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
! | ||
! Last configuration change at 18:41:02 UTC Thu Nov 24 2016 | ||
! | ||
version 15.5 | ||
service timestamps debug datetime msec | ||
service timestamps log datetime msec | ||
no platform punt-keepalive disable-kernel-core | ||
platform console auto | ||
! | ||
hostname CSR1 | ||
! | ||
boot-start-marker | ||
boot-end-marker | ||
! | ||
! | ||
enable password cisco | ||
! | ||
aaa new-model | ||
! | ||
! | ||
aaa authentication login default local | ||
aaa authorization exec default local | ||
! | ||
! | ||
! | ||
! | ||
! | ||
aaa session-id common | ||
! | ||
ip vrf MGMT | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
|
||
|
||
ip domain name example.local | ||
|
||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
subscriber templating | ||
! | ||
multilink bundle-name authenticated | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
license udi pid CSR1000V sn 9OSEGKJXRHE | ||
spanning-tree extend system-id | ||
! | ||
username cisco privilege 15 password 0 cisco | ||
! | ||
redundancy | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
interface Loopback0 | ||
ip address 1.1.1.1 255.255.255.255 | ||
! | ||
interface GigabitEthernet1 | ||
ip vrf forwarding MGMT | ||
ip address 192.168.35.121 255.255.255.0 | ||
negotiation auto | ||
! | ||
interface GigabitEthernet2 | ||
ip address 10.1.1.1 255.255.255.0 | ||
negotiation auto | ||
! | ||
interface GigabitEthernet3 | ||
no ip address | ||
shutdown | ||
negotiation auto | ||
! | ||
router ospf 1 | ||
redistribute connected subnets | ||
network 10.1.1.0 0.0.0.255 area 0 | ||
! | ||
! | ||
! | ||
! | ||
virtual-service csr_mgmt | ||
! | ||
ip forward-protocol nd | ||
! | ||
no ip http server | ||
no ip http secure-server | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
control-plane | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
! | ||
line con 0 | ||
line vty 0 4 | ||
! | ||
! | ||
end |