Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 6bdfb38

Browse files
author
Yan
committed
fix sample
1 parent 5ed1114 commit 6bdfb38

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

core/samples/_config_builder.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,6 @@ def _get_bgp_config():
3939
# Global config done
4040

4141
# IPv4 Neighbor instance config
42-
nbr_ipv4 = bgp_cfg.neighbors.Neighbor()
43-
nbr_ipv4.neighbor_address = '192.168.1.1'
44-
nbr_ipv4.config.neighbor_address = '192.168.1.1'
45-
nbr_ipv4.config.peer_as = 65002
46-
47-
nbr_ipv4_afsf = nbr_ipv4.afi_safis.AfiSafi()
48-
nbr_ipv4_afsf.afi_safi_name = openconfig_bgp_types.IPV4UNICAST()
49-
nbr_ipv4_afsf.config.peer_as = 65002
50-
nbr_ipv4_afsf.config.afi_safi_name = openconfig_bgp_types.IPV4UNICAST()
51-
nbr_ipv4_afsf.config.enabled = True
52-
53-
# Create afi-safi policy instances
54-
nbr_ipv4.afi_safis.afi_safi.append(nbr_ipv4_afsf)
55-
56-
bgp_cfg.neighbors.neighbor.append(nbr_ipv4)
57-
nbr_ipv4.parent = bgp_cfg.neighbors
5842

5943
return bgp_cfg
6044

0 commit comments

Comments
 (0)