Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Building configuration...
- !! IOS XR Configuration 6.1.2
- !! Last configuration change at Mon Mar 27 16:00:32 2017 by cisco
- !
- hostname XRv1
- logging console debugging
- vrf VPN_A
- !
- vrf VPN_B
- !
- vrf VPN_C
- !
- vrf VPN_D
- !
- vrf VPN_E
- !
- vrf VPN_F
- !
- netconf = NetconfService()
- xrv1 = NetconfServiceProvider(address="192.168.1.128",
- port=830,
- username="cisco",
- password="cisco",
- protocol="ssh")
- vrfs = Cisco_IOS_XR_infra_rsi_cfg.Vrfs()
- all_vrf_names = netconf.get_config(xrv1, Datastore.running, vrfs)
- for vrf in all_vrf_names.vrf:
- print(vrf.vrf_name)
- (ydk0.5.4py2) fred@ubuntu:~$ python xr_vpn_test_2.py
- VPN_A
- VPN_B
- VPN_C
- VPN_D
- VPN_E
- VPN_F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement