[IPinIP] Add Loopback2 interface, change dscp mode to uniform (#7234)

Co-authored-by: Ubuntu <prsunny>
This commit is contained in:
Prince Sunny 2021-04-07 09:58:12 -07:00 committed by GitHub
parent fca7b2429d
commit 20c8dd2691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 16 deletions

View File

@ -5,7 +5,7 @@
{% if DEVICE_METADATA['localhost']['sub_role'] == 'FrontEnd' or DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd'%} {% if DEVICE_METADATA['localhost']['sub_role'] == 'FrontEnd' or DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd'%}
{% set loopback_intf_names = ['Loopback0', 'Loopback4096'] %} {% set loopback_intf_names = ['Loopback0', 'Loopback4096'] %}
{% else %} {% else %}
{% set loopback_intf_names = ['Loopback0'] %} {% set loopback_intf_names = ['Loopback0', 'Loopback2', 'Loopback3'] %}
{% endif %} {% endif %}
{% for (name, prefix) in LOOPBACK_INTERFACE|pfx_filter %} {% for (name, prefix) in LOOPBACK_INTERFACE|pfx_filter %}
{%- if prefix | ipv4 and name in loopback_intf_names %} {%- if prefix | ipv4 and name in loopback_intf_names %}
@ -47,11 +47,10 @@
"TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"{% for prefix in ipv4_addresses|sort %}{{ prefix | ip }}{% if not loop.last %},{% endif %}{% endfor %}", "dst_ip":"{% for prefix in ipv4_addresses|sort %}{{ prefix | ip }}{% if not loop.last %},{% endif %}{% endfor %}",
{% if "mlnx" in DEVICE_METADATA.localhost.platform %}
"dscp_mode":"uniform", "dscp_mode":"uniform",
{% if "mlnx" in DEVICE_METADATA.localhost.platform %}
"ecn_mode":"standard", "ecn_mode":"standard",
{% else %} {% else %}
"dscp_mode":"pipe",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
{% endif %} {% endif %}
"ttl_mode":"pipe" "ttl_mode":"pipe"
@ -66,11 +65,10 @@
"TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"{% for prefix in ipv6_addresses|sort %}{{ prefix | ip }}{% if not loop.last %},{% endif %}{% endfor %}", "dst_ip":"{% for prefix in ipv6_addresses|sort %}{{ prefix | ip }}{% if not loop.last %},{% endif %}{% endfor %}",
{% if "mlnx" in DEVICE_METADATA.localhost.platform %}
"dscp_mode":"uniform", "dscp_mode":"uniform",
{% if "mlnx" in DEVICE_METADATA.localhost.platform %}
"ecn_mode":"standard", "ecn_mode":"standard",
{% else %} {% else %}
"dscp_mode":"pipe",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
{% endif %} {% endif %}
"ttl_mode":"pipe" "ttl_mode":"pipe"

View File

@ -3,7 +3,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"10.0.0.0,10.1.0.1,10.1.0.3,10.1.0.32,8.0.0.0", "dst_ip":"10.0.0.0,10.1.0.1,10.1.0.3,10.1.0.32,8.0.0.0",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },
@ -14,7 +14,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"fc00:1::32,fc00::1,fd00:1::32", "dst_ip":"fc00:1::32,fc00::1,fd00:1::32",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },

View File

@ -3,7 +3,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"10.0.0.0,10.1.0.1,10.1.0.3,10.1.0.32,8.0.0.0", "dst_ip":"10.0.0.0,10.1.0.1,10.1.0.3,10.1.0.32,8.0.0.0",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },
@ -14,7 +14,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"fc00:1::32,fc00::1,fd00:1::32", "dst_ip":"fc00:1::32,fc00::1,fd00:1::32",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },

View File

@ -23,10 +23,10 @@ router bgp 65100
bgp graceful-restart restart-time 240 bgp graceful-restart restart-time 240
bgp graceful-restart bgp graceful-restart
bgp router-id 10.1.0.32 bgp router-id 10.1.0.32
network 10.1.0.32/32
address-family ipv6 address-family ipv6
network fc00:1::32/64 network fc00:1::32/64
exit-address-family exit-address-family
network 10.1.0.32/32
network 192.168.200.1/27 network 192.168.200.1/27
network 192.168.0.1/27 network 192.168.0.1/27
neighbor 10.0.0.59 remote-as 64600 neighbor 10.0.0.59 remote-as 64600

View File

@ -2,8 +2,8 @@
{ {
"TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"10.0.0.56,10.0.0.58,10.0.0.60,10.0.0.62,10.1.0.32,192.168.0.1,192.168.200.1", "dst_ip":"10.0.0.56,10.0.0.58,10.0.0.60,10.0.0.62,10.1.0.32,10.21.0.64,10.21.64.2,192.168.0.1,192.168.200.1",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },
@ -14,7 +14,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"fc00:1::32,fc00::71,fc00::75,fc00::79,fc00::7d", "dst_ip":"fc00:1::32,fc00::71,fc00::75,fc00::79,fc00::7d",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },

View File

@ -2,8 +2,8 @@
{ {
"TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"10.0.0.56,10.0.0.58,10.0.0.60,10.0.0.62,10.1.0.32,192.168.0.1,192.168.200.1", "dst_ip":"10.0.0.56,10.0.0.58,10.0.0.60,10.0.0.62,10.1.0.32,10.21.0.64,10.21.64.2,192.168.0.1,192.168.200.1",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },
@ -14,7 +14,7 @@
"TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : { "TUNNEL_DECAP_TABLE:IPINIP_V6_TUNNEL" : {
"tunnel_type":"IPINIP", "tunnel_type":"IPINIP",
"dst_ip":"fc00:1::32,fc00::71,fc00::75,fc00::79,fc00::7d", "dst_ip":"fc00:1::32,fc00::71,fc00::75,fc00::79,fc00::7d",
"dscp_mode":"pipe", "dscp_mode":"uniform",
"ecn_mode":"copy_from_outer", "ecn_mode":"copy_from_outer",
"ttl_mode":"pipe" "ttl_mode":"pipe"
}, },

View File

@ -185,6 +185,22 @@
</a:Prefix> </a:Prefix>
<a:PrefixStr>10.10.0.99/32</a:PrefixStr> <a:PrefixStr>10.10.0.99/32</a:PrefixStr>
</a:LoopbackIPInterface> </a:LoopbackIPInterface>
<a:LoopbackIPInterface>
<Name>LoopbackIP2</Name>
<AttachTo>Loopback2</AttachTo>
<a:Prefix xmlns:b="Microsoft.Search.Autopilot.Evolution">
<b:IPPrefix>10.21.0.64/32</b:IPPrefix>
</a:Prefix>
<a:PrefixStr>10.21.0.64/32</a:PrefixStr>
</a:LoopbackIPInterface>
<a:LoopbackIPInterface>
<Name>LoopbackIP3</Name>
<AttachTo>Loopback3</AttachTo>
<a:Prefix xmlns:b="Microsoft.Search.Autopilot.Evolution">
<b:IPPrefix>10.21.64.2/32</b:IPPrefix>
</a:Prefix>
<a:PrefixStr>10.21.64.2/32</a:PrefixStr>
</a:LoopbackIPInterface>
</LoopbackIPInterfaces> </LoopbackIPInterfaces>
<ManagementIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"> <ManagementIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:ManagementIPInterface> <a:ManagementIPInterface>