Hi Sagar, The following is the case:
*With the following platform I have no issues* platform: cisco WS-3850-24S net_iostype: IOS-XE net_version: 16.06.05 output: net_interfaces - show me interface configuration per interface net_neighbors - shows me Mac address etc for all connected devices l2_interfaces - shows me interface name, switchport mode and access vlan --- *With the 9300 I don't get the complete l2_interfaces output* *platform: 9300-24p* *net_iostype: IOS-XE* *net_version: 17.03.03* net_interfaces - show me interface configuration per interface net_neighbors - shows me Mac address etc for all connected devices l2_interfaces - shows me only interface name. *missing switch port mode and access vlan* ---- *Here is the redacted config for the 9300* Building configuration... Current configuration : 30751 bytes ! ! version 17.3 service tcp-keepalives-in service timestamps debug datetime msec localtime show-timezone service timestamps log datetime msec localtime show-timezone service password-encryption service compress-config service call-home no platform punt-keepalive disable-kernel-core ! hostname redacted ! ! vrf definition Mgmt-vrf ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! logging discriminator CFGLOG mnemonics drops CFGLOG_LOGGEDCMD logging buffered discriminator CFGLOG 16384 informational no logging console enable secret 9 redacted ! aaa new-model ! ! aaa group server tacacs+ AUTH server name redacted server name redacted ip tacacs source-interface redacted ! aaa authentication password-prompt "Local Password: " aaa authentication username-prompt "Local Username: " aaa authentication login default group AUTH local aaa authentication enable default group AUTH enable aaa authorization console aaa authorization config-commands aaa authorization exec default group AUTH local aaa authorization commands 1 default group AUTH if-authenticated aaa authorization commands 15 default group AUTH if-authenticated aaa accounting exec default start-stop group AUTH aaa accounting commands 15 default stop-only group AUTH ! ! ! ! ! ! aaa session-id common boot system switch all flash:packages.conf clock timezone CET 1 0 clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00 switch 1 provision c9300-24p switch 2 provision c9300-24p software auto-upgrade enable ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip domain name redacted ! ! ! ip dhcp snooping vlan redacted no ip dhcp snooping information option ip dhcp snooping login on-success log ! ! ! ! ! ! ! vtp mode off udld enable no device-tracking logging theft password encryption aes ! source template redacted ! ! ! ! ! port-channel load-balance src-dst-ip license boot level network-advantage addon dna-advantage license smart url cslu redacted ! ! diagnostic bootup level complete ! spanning-tree mode rapid-pvst spanning-tree portfast bpduguard default spanning-tree extend system-id spanning-tree pathcost method long archive log config logging enable notify syslog contenttype plaintext path redacted write-memory memory free low-watermark processor 133138 ! errdisable recovery cause udld errdisable recovery cause bpduguard errdisable recovery cause channel-misconfig errdisable recovery cause link-flap errdisable recovery cause gbic-invalid errdisable recovery cause psecure-violation errdisable recovery cause loopback errdisable recovery interval 600 username redacted privilege 15 secret 9 redacted ! redundancy mode sso ! ! ! ! ! ! transceiver type all monitoring hw-switch switch 1 logging onboard message ! vlan redacted name redacted ! vlan redacted name redacted ! ! template redacted spanning-tree portfast switchport access vlan redacted switchport mode access load-interval 30 description redacted ! ! interface GigabitEthernet0/0 vrf forwarding Mgmt-vrf no ip address shutdown negotiation auto ! interface GigabitEthernet1/0/1 no logging event link-status no cdp enable no snmp trap link-status source template redacted service-policy input redacted ! interface GigabitEthernet1/0/2 no logging event link-status shutdown no cdp enable no snmp trap link-status source template redacted service-policy input redacted ! ! interface GigabitEthernet1/0/24 shutdown ! interface GigabitEthernet1/1/1 ! interface GigabitEthernet1/1/2 ! interface GigabitEthernet1/1/3 ! interface GigabitEthernet1/1/4 ! i ! line con 0 exec-timeout 30 0 logging synchronous stopbits 1 line vty 0 4 access-class ACL-VTY in exec-timeout 30 0 logging synchronous transport input ssh line vty 5 31 access-class ACL-VTY in exec-timeout 30 0 logging synchronous no exec transport input ssh ! end Op ma 31 jan. 2022 om 13:36 schreef Sagar Paul <[email protected]>: > Hi Lucio, > > Can you please share the config that is not giving facts data? > > Regards, > Sagar Paul > > On Friday, January 28, 2022 at 10:25:49 PM UTC+5:30 [email protected] > wrote: > >> Hi, >> >> When I use the gather fact module and choose to get the l2_interfaces, it >> doesn't return the l2_interfaces properties. >> When I use the same playbook on catalyst 3650 (also ios-xe) I get the >> l2_interfaces properties. >> >> Is this a known issue? >> >> Regards, >> >> Lucio Jankok >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/674592ac-b9c5-4b76-abba-7b3ebb720819n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/674592ac-b9c5-4b76-abba-7b3ebb720819n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADFeZ2uUBfy6CF7qt5_84%2B0sf5KLSpXyEc-%3DM69C_kUMG12S4w%40mail.gmail.com.
