py-junos-eznc
py-junos-eznc copied to clipboard
EthernetSwitchingTable returns 0 items
Hi, I am trying to use EthernetSwitchingTable op on EX3300 and EX2200 switches and always returns 0 items. On switches like EX2300 i use ElsEthernetSwitchingTable and they work normally and return the expexted items. any help with this table/view would be appreciated.
Which version of Junos are you using on EX2200 and 3300?
15.1R7-S10 on both
Get Outlook for iOShttps://aka.ms/o0ukef
From: Dwarakanath Yadavalli @.> Sent: Thursday, February 2, 2023 8:54 PM To: Juniper/py-junos-eznc @.> Cc: aniljham @.>; Author @.> Subject: Re: [Juniper/py-junos-eznc] EthernetSwitchingTable returns 0 items (Issue #1228)
Which version of Junos are you using on EX2200 and 3300?
— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJuniper%2Fpy-junos-eznc%2Fissues%2F1228%23issuecomment-1414951535&data=05%7C01%7C%7C30e7f6714a354c386ed608db05a2c2be%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109968842794670%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5TheDTBUjkun%2F5FKFvM%2FJajWqPBPqllriyeC5DVpoZ8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADY34UPYMF7MWV4VU7SDSODWVSFRDANCNFSM6AAAAAAUJ2UORY&data=05%7C01%7C%7C30e7f6714a354c386ed608db05a2c2be%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109968842794670%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PZ5REPmti8A0Hdf1lV%2FcVcbb8ig5U%2FUrKqn6OSphgfw%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Hi @aniljham , I was having the same issue and I fixed it by adding a key to the yaml file definition.
---
EthernetSwitchingTable:
rpc: get-ethernet-switching-table-information
args:
detail: True
key: mac-table-count
item: ethernet-switching-table
view: EthernetSwitchingView
Yes I figured that the key was missing I did try but not sure what and did not get the result I was wanting. I will try your recommendation Thanks for sharing Anil jham
Get Outlook for iOShttps://aka.ms/o0ukef
From: charrrr93 @.> Sent: Thursday, May 18, 2023 11:00 PM To: Juniper/py-junos-eznc @.> Cc: aniljham @.>; Mention @.> Subject: Re: [Juniper/py-junos-eznc] EthernetSwitchingTable returns 0 items (Issue #1228)
Hi @aniljhamhttps://github.com/aniljham , I was having the same issue and I fixed it by adding a key to the yaml file definition.
EthernetSwitchingTable: rpc: get-ethernet-switching-table-information args: detail: True key: mac-table-count item: ethernet-switching-table view: EthernetSwitchingView
— Reply to this email directly, view it on GitHubhttps://github.com/Juniper/py-junos-eznc/issues/1228#issuecomment-1554051148, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADY34UOOQRMK5ILWWAQGEBLXG4D6VANCNFSM6AAAAAAUJ2UORY. You are receiving this because you were mentioned.Message ID: @.***>
Fixed #1341. Hence, closed it.