Open IPvSean opened 9 months ago
Also seems off.... with the eos_static_routes
---
- hosts: arista
gather_facts: false
tasks:
- name: gather static routes
arista.eos.eos_static_routes:
state: gathered
register: static_routes
- name: gather static routes
ansible.builtin.debug:
msg: "{{ static_routes }}"
I am not even convinced the static routes are working at all now... I added a static route
[student@ansible-1 ~]$ ssh rtr2
Last login: Thu Feb 22 19:24:00 2024 from 3.133.158.195
Please register for a CVaaS account at https://www.arista.io/cv!
rtr2>en
rtr2#sh run | i route
switchport default mode routed
dhcp client accept default-route
ip route 3.3.3.3/32 192.168.1.3
router bgp 65001
router-id 192.168.2.2
router ospf 1
router-id 192.168.2.2
then I still get nothing...
here is the entire output from the facts module...
"ansible_network_resources": {
"acl_interfaces": [
{
"name": "Ethernet1"
},
{
"name": "Ethernet100"
},
{
"name": "Loopback0"
},
{
"name": "Tunnel0"
}
],
"hostname": {
"hostname": "rtr4"
},
"interfaces": [
{
"enabled": true,
"mode": "layer3",
"name": "Ethernet1"
},
{
"enabled": true,
"mode": "layer3",
"name": "Ethernet100"
},
{
"enabled": true,
"name": "Loopback0"
},
{
"enabled": true,
"mtu": 1394,
"name": "Tunnel0"
}
],
"l2_interfaces": [
{
"name": "Ethernet1"
},
{
"name": "Ethernet100"
},
{
"name": "Loopback0"
},
{
"name": "Tunnel0"
}
],
"l3_interfaces": [
{
"ipv4": [
{
"address": "dhcp"
}
],
"name": "Ethernet1"
},
{
"name": "Ethernet100"
},
{
"ipv4": [
{
"address": "192.168.4.4/32"
}
],
"name": "Loopback0"
},
{
"ipv4": [
{
"address": "10.101.101.4/24"
}
],
"name": "Tunnel0"
}
],
"lacp": {},
"lag_interfaces": [],
"lldp_global": {},
"logging_global": {},
"ntp_global": {},
"ospf_interfaces": [
{
"name": "Ethernet1"
},
{
"name": "Ethernet100"
},
{
"name": "Loopback0"
},
{
"address_family": [
{
"afi": "ipv4",
"area": {
"area_id": "0.0.0.0"
},
"network": "point-to-point"
}
],
"name": "Tunnel0"
}
],
"ospfv2": {
"processes": [
{
"max_lsa": {
"count": 12000
},
"process_id": 1,
"redistribute": [
{
"routes": "connected"
}
],
"router_id": "192.168.4.4"
}
]
},
"ospfv3": [],
"prefix_lists": [],
"snmp_server": {}
}
},
"changed": false,
"failed": false
},
I don't see static routes at all for it....
SUMMARY
If you do this->
This will not return anything, its a null issue, this will cause issues with templating out facts https://github.com/network-automation/toolkit/pull/48
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
I am using https://quay.io/repository/acme_corp/network-ee
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
If something does not exist, I would expect something "empty"
that is how the other resources are treated
ACTUAL RESULTS