Skip to content

Instantly share code, notes, and snippets.

View rohitthakur2590's full-sized avatar

Rohit Thakur rohitthakur2590

View GitHub Profile
@rohitthakur2590
rohitthakur2590 / delete.txt
Last active April 1, 2021 14:53
junos_bgp_global deleted operation logs
vagrant@vsrx# show routing-options autonomous-system
65534 loops 3 asdot-notation;
vagrant@vsrx# show protocols bgp
precision-timers;
advertise-from-main-vpn-tables;
holddown-all-stale-labels;
description "This is configured with Junos_bgp resource module";
accept-remote-nexthop;
@rohitthakur2590
rohitthakur2590 / purged.txt
Last active April 1, 2021 14:42
junos_bgp_global purged operation log
vagrant@vsrx# show routing-options autonomous-system
65534 loops 3 asdot-notation;
vagrant@vsrx# show protocols bgp
precision-timers;
advertise-from-main-vpn-tables;
holddown-all-stale-labels;
description "This is configured with Junos_bgp resource module";
accept-remote-nexthop;
@rohitthakur2590
rohitthakur2590 / replaced.txt
Created March 16, 2021 09:17
junos_bgp_global_replaced task log
Before Device Config:
=====================
vagrant@vsrx# show routing-options autonomous-system
65534 loops 5 asdot-notation;
vagrant@vsrx# show protocols bgp
precision-timers;
advertise-from-main-vpn-tables;
holddown-all-stale-labels;
description "Config is updated with merged operation";
accept-remote-nexthop;
@rohitthakur2590
rohitthakur2590 / replaced_playbook_config.txt
Created March 16, 2021 09:05
input config structure for replaced config operation
accept_remote_nexthop: true
add_path_display_ipv4_address: true
advertise_from_main_vpn_tables: true
advertise_inactive: true
as_number: '65534'
asdot_notation: true
authentication_algorithm: md5
bgp_error_tolerance:
malformed_route_limit: 20000000
bmp:
@rohitthakur2590
rohitthakur2590 / merged.txt
Created March 16, 2021 07:32
junos_bgp_global merged operation log
Before Device Config:
=====================
vagrant@vsrx# show routing-options autonomous-system
65534 loops 3 asdot-notation;
vagrant@vsrx# show protocols bgp
precision-timers;
advertise-from-main-vpn-tables;
holddown-all-stale-labels;
@rohitthakur2590
rohitthakur2590 / merged_playbook_config.txt
Last active March 16, 2021 07:22
Configuration to be merged intto running-config
accept_remote_nexthop: true
add_path_display_ipv4_address: true
advertise_from_main_vpn_tables: true
advertise_inactive: true
as_number: '65534'
asdot_notation: true
authentication_algorithm: md5
bgp_error_tolerance:
malformed_route_limit: 20000000
bmp:
@rohitthakur2590
rohitthakur2590 / gathered_output.txt
Last active March 16, 2021 06:54
Junos running_config_to_structured_data
$ cat lab_inventory/host_vars/junos/bgp_global.yaml
bgp_global:
accept_remote_nexthop: true
add_path_display_ipv4_address: true
advertise_from_main_vpn_tables: true
advertise_inactive: true
as_number: '65534'
asdot_notation: true
authentication_algorithm: md5
bgp_error_tolerance:
@rohitthakur2590
rohitthakur2590 / gathered.txt
Created March 16, 2021 06:26
Junos Device running configuration
vagrant@vsrx# show routing-options autonomous-system
65534 loops 3 asdot-notation;
vagrant@vsrx# show protocols bgp
precision-timers;
advertise-from-main-vpn-tables;
holddown-all-stale-labels;
description "This is configured with Junos_bgp resource module";
accept-remote-nexthop;
preference 2;
@rohitthakur2590
rohitthakur2590 / Bootstrap VM error
Created March 10, 2021 15:16
Bootstrap VM error
TASK [network-image-builder : Bootstrap VM] **************************************************************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/ansible-network/network-image-builder/tasks/vsrx/20.4R1/bootstrap.yaml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: rothakur
<127.0.0.1> EXEC /bin/sh -c 'echo ~rothakur && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1615369536.2901797-171648-244106351339516 `" && echo ansible-tmp-1615369536.2901797-171648-244106351339516="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1615369536.2901797-171648-244106351339516 `" ) && sleep 0'
Using module file /home/rothakur/.local/lib/python3.9/site-packages/ansible/modules/expect.py
<127.0.0.1> PUT /home/rothakur/.ansible/tmp/ansible-local-171332q
fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": "telnet localhost 8888",
"delta": "0:15:00.204780",
"end": "2021-03-04 13:10:42.948346",
"invocation": {
"module_args": {
"chdir": null,
"command": "telnet localhost 8888",
"creates": null,