diff --git a/core_config/ansible-csr1-config.txt b/core_config/ansible-csr1-config.txt index 37b95e4..6f3254d 100644 --- a/core_config/ansible-csr1-config.txt +++ b/core_config/ansible-csr1-config.txt @@ -56,18 +56,21 @@ interface GigabitEthernet4 no shutdown ip address 172.10.12.1 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet3 no shutdown ip address 172.10.14.1 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.13.1 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -116,6 +119,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/core_config/ansible-csr2-config.txt b/core_config/ansible-csr2-config.txt index 1595005..4fe44e2 100644 --- a/core_config/ansible-csr2-config.txt +++ b/core_config/ansible-csr2-config.txt @@ -56,18 +56,21 @@ interface GigabitEthernet4 no shutdown ip address 172.10.12.2 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet3 no shutdown ip address 172.10.23.2 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.25.2 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -90,6 +93,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/core_config/ansible-csr3-config.txt b/core_config/ansible-csr3-config.txt index 2f705eb..60b6bed 100644 --- a/core_config/ansible-csr3-config.txt +++ b/core_config/ansible-csr3-config.txt @@ -56,12 +56,14 @@ interface GigabitEthernet3 no shutdown ip address 172.10.23.3 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.13.3 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -83,6 +85,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/core_config/ansible-csr4-config.txt b/core_config/ansible-csr4-config.txt index 1004e06..fcdba7d 100644 --- a/core_config/ansible-csr4-config.txt +++ b/core_config/ansible-csr4-config.txt @@ -56,18 +56,21 @@ interface GigabitEthernet4 no shutdown ip address 172.10.45.4 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet3 no shutdown ip address 172.10.14.4 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.46.4 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -90,6 +93,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/core_config/ansible-csr5-config.txt b/core_config/ansible-csr5-config.txt index e9c720d..5999157 100644 --- a/core_config/ansible-csr5-config.txt +++ b/core_config/ansible-csr5-config.txt @@ -56,18 +56,21 @@ interface GigabitEthernet4 no shutdown ip address 172.10.45.5 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet3 no shutdown ip address 172.10.56.5 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.25.5 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -90,6 +93,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/core_config/ansible-csr6-config.txt b/core_config/ansible-csr6-config.txt index 2a52f77..e9d500f 100644 --- a/core_config/ansible-csr6-config.txt +++ b/core_config/ansible-csr6-config.txt @@ -56,12 +56,14 @@ interface GigabitEthernet3 no shutdown ip address 172.10.56.6 255.255.255.0 negotiation auto + mpls ip ! ! interface GigabitEthernet2 no shutdown ip address 172.10.46.6 255.255.255.0 negotiation auto + mpls ip ! ! ! @@ -83,6 +85,8 @@ router bgp 65000 exit-address-family ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd diff --git a/ios/core.j2 b/ios/core.j2 index 8a3c919..a0a004d 100644 --- a/ios/core.j2 +++ b/ios/core.j2 @@ -62,6 +62,9 @@ interface {{intf.split('.')[0]}} ip address {{intf_attr.ip}} {{intf_attr.mask|default('255.255.255.0')}} negotiation auto {% endif %} +{% if intf_attr.mpls is defined %} + mpls ip +{% endif %} ! {% if intf_attr.vlan is defined and intf_attr.vlan != 0 %} interface {{intf}} @@ -106,6 +109,8 @@ router bgp {{common.bgp_asn}} {% endif %} ! ! +mpls label protocol ldp +! virtual-service csr_mgmt ! ip forward-protocol nd