From 85f82c538586ca0ec0b16887fb38c689a2ef48e9 Mon Sep 17 00:00:00 2001 From: Ivan Pepelnjak Date: Fri, 3 Feb 2023 10:58:40 +0100 Subject: [PATCH] Update 'BGP anycast' lab topology to use netlab 1.5 features --- .../topology-external-next-hop.yml | 6 ++---- routing/anycast-bgp-addpath/topology.yml | 11 ++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/routing/anycast-bgp-addpath/topology-external-next-hop.yml b/routing/anycast-bgp-addpath/topology-external-next-hop.yml index 2511c3d..aadf888 100644 --- a/routing/anycast-bgp-addpath/topology-external-next-hop.yml +++ b/routing/anycast-bgp-addpath/topology-external-next-hop.yml @@ -8,10 +8,8 @@ module: [ ospf, bgp ] -defaults.bgp.extra_attributes.node: [ anycast ] - -defaults: - device: iosv +defaults.bgp.attributes.node.anycast: { type: ipv4, use: prefix } +defaults.device: iosv bgp: ebgp_role: stub diff --git a/routing/anycast-bgp-addpath/topology.yml b/routing/anycast-bgp-addpath/topology.yml index deb9551..a7bfb1a 100644 --- a/routing/anycast-bgp-addpath/topology.yml +++ b/routing/anycast-bgp-addpath/topology.yml @@ -7,10 +7,8 @@ module: [ ospf, bgp ] -defaults.bgp.extra_attributes.node: [ anycast ] - -defaults: - device: iosv +defaults.bgp.attributes.node.anycast: { type: ipv4, use: prefix } +defaults.device: iosv bgp: as_list: @@ -25,9 +23,8 @@ groups: config: [ bgp-addpath.j2 ] as65101: config: [ bgp-anycast.j2 ] - node_data: - bgp.anycast: 10.42.42.42/32 - bgp.advertise_loopback: False + bgp.anycast: 10.42.42.42/32 + bgp.advertise_loopback: False nodes: [ l1, l2, l3, s1, a1, a2, a3 ]