>>>>>>>>>>>>>>>>>>>>>>>>>> show running config <<<<<<<<<<<<<<<<<<<<<<<<< sonic# show running-configuration interface Eth1/5 ! interface Eth1/5 mtu 9100 speed 400000 fec RS no shutdown ip address 100.1.1.1/24 ip dhcp-relay 100.1.1.2 100.1.1.3 100.1.1.4 vrf VrfReg1 ip dhcp-relay source-interface Vlan101 ip dhcp-relay link-select ip dhcp-relay max-hop-count 8 ip dhcp-relay vrf-select ip dhcp-relay policy-action append ip dhcp-relay circuit-id %h:%p ipv6 address 100::1/122 ipv6 dhcp-relay 100::2 100::3 vrf VrfReg2 ipv6 dhcp-relay source-interface Vlan101 ipv6 dhcp-relay max-hop-count 8 ipv6 dhcp-relay vrf-select sonic# show running-configuration interface Eth1/6 ! interface Eth1/6 mtu 9100 speed 400000 fec RS no shutdown ip address 101.1.1.1/24 ip dhcp-relay 101.1.1.2 ip dhcp-relay max-hop-count 8 ip dhcp-relay circuit-id %h:%p ipv6 address 101::1/122 ipv6 dhcp-relay 101::2 101::3 ipv6 dhcp-relay max-hop-count 8 sonic# show running-configuration interface PortChannel 100 ! interface PortChannel 100 no shutdown ip address 120.1.1.1/24 ip dhcp-relay 120.1.1.2 120.1.1.3 ip dhcp-relay source-interface Vlan101 ip dhcp-relay link-select ip dhcp-relay max-hop-count 6 ip dhcp-relay circuit-id %i ipv6 address 120::1/122 ipv6 dhcp-relay 120::2 sonic# show running-configuration interface PortChannel 101 ! interface PortChannel 101 no shutdown ip address 121.1.1.1/24 ip dhcp-relay 121.1.1.2 ipv6 address 121::1/122 ipv6 dhcp-relay 121::2 121::3 ipv6 dhcp-relay source-interface Vlan101 ipv6 dhcp-relay max-hop-count 8 sonic# show running-configuration interface Vlan 100 ! interface Vlan100 ip address 110.1.1.1/24 ip dhcp-relay 110.1.1.2 110.1.1.3 110.1.1.4 110.1.1.5 ip dhcp-relay policy-action append ip dhcp-relay circuit-id %i ipv6 address 110::1/122 sonic# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> get facts <<<<<<<<<<<<<<<<<<<<<<<<<<<< PLAY [Ansible dhcp_relay resource module facts example] ***************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************** ok: [sonic1] TASK [Gather facts] ***************************************************************************************************************************************************************** [WARNING]: default value for `gather_subset` will be changed to `min` from `!config` v2.11 onwards ok: [sonic1] TASK [Debug facts] ****************************************************************************************************************************************************************** ok: [sonic1] => { "msg": { "dhcp_relay": [ { "ipv4": { "circuit_id": "%h:%p", "link_select": true, "max_hop_count": 8, "policy_action": "append", "server_addresses": [ { "address": "100.1.1.2" }, { "address": "100.1.1.3" }, { "address": "100.1.1.4" } ], "source_interface": "Vlan101", "vrf_name": "VrfReg1", "vrf_select": true }, "ipv6": { "max_hop_count": 8, "server_addresses": [ { "address": "100::2" }, { "address": "100::3" } ], "source_interface": "Vlan101", "vrf_name": "VrfReg2", "vrf_select": true }, "name": "Eth1/5" }, { "ipv4": { "circuit_id": "%h:%p", "link_select": false, "max_hop_count": 8, "policy_action": "discard", "server_addresses": [ { "address": "101.1.1.2" } ], "source_interface": null, "vrf_name": null, "vrf_select": false }, "ipv6": { "max_hop_count": 8, "server_addresses": [ { "address": "101::2" }, { "address": "101::3" } ], "source_interface": null, "vrf_name": null, "vrf_select": false }, "name": "Eth1/6" }, { "ipv4": { "circuit_id": "%i", "link_select": true, "max_hop_count": 6, "policy_action": "discard", "server_addresses": [ { "address": "120.1.1.2" }, { "address": "120.1.1.3" } ], "source_interface": "Vlan101", "vrf_name": null, "vrf_select": false }, "ipv6": { "max_hop_count": 10, "server_addresses": [ { "address": "120::2" } ], "source_interface": null, "vrf_name": null, "vrf_select": false }, "name": "PortChannel100" }, { "ipv4": { "circuit_id": "%p", "link_select": false, "max_hop_count": 10, "policy_action": "discard", "server_addresses": [ { "address": "121.1.1.2" } ], "source_interface": null, "vrf_name": null, "vrf_select": false }, "ipv6": { "max_hop_count": 8, "server_addresses": [ { "address": "121::2" }, { "address": "121::3" } ], "source_interface": "Vlan101", "vrf_name": null, "vrf_select": false }, "name": "PortChannel101" }, { "ipv4": { "circuit_id": "%i", "link_select": false, "max_hop_count": 10, "policy_action": "append", "server_addresses": [ { "address": "110.1.1.2" }, { "address": "110.1.1.3" }, { "address": "110.1.1.4" }, { "address": "110.1.1.5" } ], "source_interface": null, "vrf_name": null, "vrf_select": false }, "ipv6": null, "name": "Vlan100" } ] } } PLAY RECAP ************************************************************************************************************************************************************************** sonic1 : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0