py-junos-eznc icon indicating copy to clipboard operation
py-junos-eznc copied to clipboard

EthernetSwitchingTable returns 0 items

Open aniljham opened this issue 2 years ago • 4 comments

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.

aniljham avatar Jan 28 '23 20:01 aniljham

Which version of Junos are you using on EX2200 and 3300?

ydnath avatar Feb 03 '23 04:02 ydnath

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

charlottecampbell193 avatar May 19 '23 06:05 charlottecampbell193

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: @.***>

aniljham avatar May 29 '23 02:05 aniljham

Fixed #1341. Hence, closed it.

dineshbaburam91 avatar Oct 23 '24 07:10 dineshbaburam91