Last active
June 21, 2021 10:03
-
-
Save rohitthakur2590/0208f2f4fca3d1aae1981b6a562b7494 to your computer and use it in GitHub Desktop.
junos bgp_address_family replaced operation logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before Device Config: | |
===================== | |
vagrant@vsrx# show routing-options | |
autonomous-system 65534 loops 3 asdot-notation; | |
vagrant@vsrx# show protocols bgp | |
family inet { | |
unicast { | |
local-ipv4-address 9.9.9.9; | |
extended-nexthop; | |
extended-nexthop-color; | |
} | |
flow { | |
loops 4; | |
no-install; | |
output-queue-priority expedited; | |
legacy-redirect-ip-action { | |
receive; | |
send; | |
} | |
secondary-independent-resolution; | |
} | |
labeled-unicast { | |
prefix-limit { | |
maximum 20; | |
teardown 99 idle-timeout forever; | |
} | |
route-refresh-priority priority 3; | |
per-prefix-label; | |
per-group-label; | |
rib { | |
inet.3; | |
} | |
explicit-null connected-only; | |
resolve-vpn; | |
entropy-label { | |
no-next-hop-validation; | |
} | |
} | |
} | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
teardown 98 idle-timeout 2001; | |
} | |
damping; | |
defer-initial-multipath-build { | |
maximum-delay 2; | |
} | |
} | |
} | |
group internal { | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
teardown 98 idle-timeout 2001; | |
} | |
damping; | |
defer-initial-multipath-build { | |
maximum-delay 2; | |
} | |
} | |
} | |
neighbor 10.10.10.1 { | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
} | |
} | |
} | |
peer-as 64532; | |
} | |
} | |
Task Execution result: | |
===================== | |
changed: [192.168.122.43] => { | |
"after": { | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20 | |
}, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
}, | |
{ | |
"af_type": [ | |
{ | |
"legacy_redirect_ip_action": { | |
"receive": true, | |
"send": true | |
}, | |
"loops": 4, | |
"no_install": true, | |
"prefix_limit": { | |
"forever": true, | |
"limit_threshold": 98, | |
"maximum": 15 | |
}, | |
"secondary_independent_resolution": true, | |
"type": "flow" | |
}, | |
{ | |
"entropy_label": { | |
"no_next_hop_validation": true | |
}, | |
"explicit_null": { | |
"connected_only": true | |
}, | |
"per_group_label": true, | |
"per_prefix_label": true, | |
"prefix_limit": { | |
"forever": true, | |
"limit_threshold": 99, | |
"maximum": 20 | |
}, | |
"resolve_vpn": true, | |
"rib": "inet.3", | |
"route_refresh_priority_priority": 3, | |
"type": "labeled-unicast" | |
}, | |
{ | |
"extended_nexthop": true, | |
"extended_nexthop_color": true, | |
"local_ipv4_address": "192.168.122.40", | |
"type": "unicast" | |
} | |
], | |
"afi": "inet" | |
} | |
], | |
"groups": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20 | |
}, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
} | |
], | |
"name": "internal", | |
"neighbors": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"maximum": 20 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
}, | |
{ | |
"af_type": [ | |
{ | |
"extended_nexthop": true, | |
"extended_nexthop_color": true, | |
"local_ipv4_address": "192.168.56.120", | |
"type": "unicast" | |
} | |
], | |
"afi": "inet" | |
} | |
], | |
"neighbor_address": "10.10.10.1" | |
} | |
] | |
} | |
] | |
}, | |
"before": { | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20 | |
}, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
}, | |
{ | |
"af_type": [ | |
{ | |
"entropy_label": { | |
"no_next_hop_validation": true | |
}, | |
"explicit_null": { | |
"connected_only": true | |
}, | |
"per_group_label": true, | |
"per_prefix_label": true, | |
"prefix_limit": { | |
"forever": true, | |
"limit_threshold": 99, | |
"maximum": 20 | |
}, | |
"resolve_vpn": true, | |
"rib": "inet.3", | |
"route_refresh_priority_priority": 3, | |
"type": "labeled-unicast" | |
}, | |
{ | |
"extended_nexthop": true, | |
"extended_nexthop_color": true, | |
"local_ipv4_address": "9.9.9.9", | |
"type": "unicast" | |
} | |
], | |
"afi": "inet" | |
} | |
], | |
"groups": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20 | |
}, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
} | |
], | |
"name": "internal", | |
"neighbors": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"maximum": 20 | |
}, | |
"type": "signaling" | |
} | |
], | |
"afi": "evpn" | |
} | |
], | |
"neighbor_address": "10.10.10.1" | |
} | |
] | |
} | |
] | |
}, | |
"changed": true, | |
"commands": [ | |
"<nc:protocols xmlns:nc=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><nc:bgp><nc:group><nc:name>internal</nc:name><nc:family><nc:evpn delete=\"delete\"/></nc:family><nc:neighbor><nc:name>10.10.10.1</nc:name><nc:family><nc:evpn delete=\"delete\"/></nc:family></nc:neighbor></nc:group><nc:family><nc:evpn delete=\"delete\"/><nc:inet delete=\"delete\"/></nc:family><nc:group><nc:name>internal</nc:name><nc:family><nc:evpn><nc:signaling><nc:accepted-prefix-limit><nc:maximum>20</nc:maximum><nc:teardown><nc:limit-threshold>98</nc:limit-threshold><nc:idle-timeout><nc:timeout>2001</nc:timeout></nc:idle-timeout></nc:teardown></nc:accepted-prefix-limit><nc:damping/><nc:defer-initial-multipath-build><nc:maximum-delay>2</nc:maximum-delay></nc:defer-initial-multipath-build></nc:signaling></nc:evpn></nc:family><nc:neighbor><nc:name>10.10.10.1</nc:name><nc:family><nc:evpn><nc:signaling><nc:accepted-prefix-limit><nc:maximum>20</nc:maximum></nc:accepted-prefix-limit></nc:signaling></nc:evpn><nc:inet><nc:unicast><nc:extended-nexthop/><nc:extended-nexthop-color/><nc:local-ipv4-address>192.168.56.120</nc:local-ipv4-address></nc:unicast></nc:inet></nc:family></nc:neighbor></nc:group><nc:family><nc:evpn><nc:signaling><nc:accepted-prefix-limit><nc:maximum>20</nc:maximum><nc:teardown><nc:limit-threshold>98</nc:limit-threshold><nc:idle-timeout><nc:timeout>2001</nc:timeout></nc:idle-timeout></nc:teardown></nc:accepted-prefix-limit><nc:damping/><nc:defer-initial-multipath-build><nc:maximum-delay>2</nc:maximum-delay></nc:defer-initial-multipath-build></nc:signaling></nc:evpn><nc:inet><nc:flow><nc:legacy-redirect-ip-action><nc:send/><nc:receive/></nc:legacy-redirect-ip-action><nc:loops>4</nc:loops><nc:no-install/><nc:prefix-limit><nc:maximum>15</nc:maximum><nc:teardown>98<nc:idle-timeout><nc:forever/></nc:idle-timeout></nc:teardown></nc:prefix-limit><nc:secondary-independent-resolution/></nc:flow><nc:unicast><nc:extended-nexthop/><nc:extended-nexthop-color/><nc:local-ipv4-address>192.168.122.40</nc:local-ipv4-address></nc:unicast><nc:labeled-unicast><nc:entropy-label><nc:no-next-hop-validation/></nc:entropy-label><nc:explicit-null><nc:connected-only/></nc:explicit-null><nc:per-prefix-label/><nc:per-group-label/><nc:prefix-limit><nc:maximum>20</nc:maximum><nc:teardown>99<nc:idle-timeout><nc:forever/></nc:idle-timeout></nc:teardown></nc:prefix-limit><nc:resolve-vpn/><nc:rib><nc:inet.3/></nc:rib><nc:route-refresh-priority><nc:expedited/><nc:priority>3</nc:priority></nc:route-refresh-priority></nc:labeled-unicast></nc:inet></nc:family></nc:bgp></nc:protocols>", | |
"<nc:routing-options xmlns:nc=\"urn:ietf:params:xml:ns:netconf:base:1.0\"/>" | |
], | |
"invocation": { | |
"module_args": { | |
"config": { | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"forever": null, | |
"idle_timeout": null, | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20, | |
"teardown": null | |
}, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2, | |
"set": null | |
}, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": null, | |
"extended_nexthop_color": null, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": null, | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": null, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "signaling", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
} | |
], | |
"afi": "evpn" | |
}, | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": null, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": null, | |
"defer_initial_multipath_build": null, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": null, | |
"extended_nexthop_color": null, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": { | |
"receive": true, | |
"send": true, | |
"set": null | |
}, | |
"local_ipv4_address": null, | |
"loops": 4, | |
"no_install": true, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": { | |
"forever": true, | |
"idle_timeout": null, | |
"idle_timeout_value": null, | |
"limit_threshold": 98, | |
"maximum": 15, | |
"teardown": null | |
}, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": true, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "flow", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
}, | |
{ | |
"accepted_prefix_limit": null, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": null, | |
"defer_initial_multipath_build": null, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": true, | |
"extended_nexthop_color": true, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": "192.168.122.40", | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": null, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "unicast", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
}, | |
{ | |
"accepted_prefix_limit": null, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": null, | |
"defer_initial_multipath_build": null, | |
"delay_route_advertisements": null, | |
"entropy_label": { | |
"import": null, | |
"no_next_hop_validation": true, | |
"set": null | |
}, | |
"explicit_null": { | |
"connected_only": true, | |
"set": null | |
}, | |
"extended_nexthop": null, | |
"extended_nexthop_color": null, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": null, | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": true, | |
"per_prefix_label": true, | |
"prefix_limit": { | |
"forever": true, | |
"idle_timeout": null, | |
"idle_timeout_value": null, | |
"limit_threshold": 99, | |
"maximum": 20, | |
"teardown": null | |
}, | |
"resolve_vpn": true, | |
"rib": "inet.3", | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": true, | |
"route_refresh_priority_priority": 3, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "labeled-unicast", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
} | |
], | |
"afi": "inet" | |
} | |
], | |
"groups": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"forever": null, | |
"idle_timeout": null, | |
"idle_timeout_value": 2001, | |
"limit_threshold": 98, | |
"maximum": 20, | |
"teardown": null | |
}, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": true, | |
"defer_initial_multipath_build": { | |
"maximum_delay": 2, | |
"set": null | |
}, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": null, | |
"extended_nexthop_color": null, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": null, | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": null, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "signaling", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
} | |
], | |
"afi": "evpn" | |
} | |
], | |
"name": "internal", | |
"neighbors": [ | |
{ | |
"address_family": [ | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": { | |
"forever": null, | |
"idle_timeout": null, | |
"idle_timeout_value": null, | |
"limit_threshold": null, | |
"maximum": 20, | |
"teardown": null | |
}, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": null, | |
"defer_initial_multipath_build": null, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": null, | |
"extended_nexthop_color": null, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": null, | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": null, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "signaling", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
} | |
], | |
"afi": "evpn" | |
}, | |
{ | |
"af_type": [ | |
{ | |
"accepted_prefix_limit": null, | |
"add_path": null, | |
"aggregate_label": null, | |
"aigp": null, | |
"damping": null, | |
"defer_initial_multipath_build": null, | |
"delay_route_advertisements": null, | |
"entropy_label": null, | |
"explicit_null": null, | |
"extended_nexthop": true, | |
"extended_nexthop_color": true, | |
"graceful_restart_forwarding_state_bit": null, | |
"legacy_redirect_ip_action": null, | |
"local_ipv4_address": "192.168.56.120", | |
"loops": null, | |
"no_install": null, | |
"no_validate": null, | |
"output_queue_priority_expedited": null, | |
"output_queue_priority_priority": null, | |
"per_group_label": null, | |
"per_prefix_label": null, | |
"prefix_limit": null, | |
"resolve_vpn": null, | |
"rib": null, | |
"ribgroup_name": null, | |
"route_refresh_priority_expedited": null, | |
"route_refresh_priority_priority": null, | |
"secondary_independent_resolution": null, | |
"set": null, | |
"strip_nexthop": null, | |
"topology": null, | |
"traffic_statistics": null, | |
"type": "unicast", | |
"withdraw_priority_expedited": null, | |
"withdraw_priority_priority": null | |
} | |
], | |
"afi": "inet" | |
} | |
], | |
"neighbor_address": "10.10.10.1" | |
} | |
] | |
} | |
] | |
}, | |
"running_config": null, | |
"state": "replaced" | |
} | |
} | |
} | |
After Device Config: | |
==================== | |
vagrant@vsrx# show protocols bgp | |
family inet { | |
unicast { | |
local-ipv4-address 192.168.122.40; | |
extended-nexthop; | |
extended-nexthop-color; | |
} | |
flow { | |
prefix-limit { | |
maximum 15; | |
teardown 98 idle-timeout forever; | |
} | |
loops 4; | |
no-install; | |
legacy-redirect-ip-action { | |
receive; | |
send; | |
} | |
secondary-independent-resolution; | |
} | |
labeled-unicast { | |
prefix-limit { | |
maximum 20; | |
teardown 99 idle-timeout forever; | |
} | |
route-refresh-priority priority 3; | |
per-prefix-label; | |
per-group-label; | |
rib { | |
inet.3; | |
} | |
explicit-null connected-only; | |
resolve-vpn; | |
entropy-label { | |
no-next-hop-validation; | |
} | |
} | |
} | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
teardown 98 idle-timeout 2001; | |
} | |
damping; | |
defer-initial-multipath-build { | |
maximum-delay 2; | |
} | |
} | |
} | |
group internal { | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
teardown 98 idle-timeout 2001; | |
} | |
damping; | |
defer-initial-multipath-build { | |
maximum-delay 2; | |
} | |
} | |
} | |
neighbor 10.10.10.1 { | |
family inet { | |
unicast { | |
local-ipv4-address 192.168.56.120; | |
extended-nexthop; | |
extended-nexthop-color; | |
} | |
} | |
family evpn { | |
signaling { | |
accepted-prefix-limit { | |
maximum 20; | |
} | |
} | |
} | |
peer-as 64532; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment