p4lang / tdi

Table-Driven Interface (TDI) for a P4-programmable backend device.
Apache License 2.0
40 stars 23 forks source link

minor fix related to string_choices #119

Closed satish153 closed 1 year ago

satish153 commented 1 year ago

Issue: string_choices attribute is not available at intermediate nodes:

tdi_python> tdi.tna_idletimeout.pipe.SwitchIngress.dmac.string_choices

---------------------------------------------------------------------------

AttributeError                            Traceback (most recent call last)

<ipython-input-28-217667697767> in <module>

----> 1 tdi.tna_idletimeout.pipe.SwitchIngress.dmac.string_choices
AttributeError: 'TDILeafTofino' object has no attribute 'string_choices'

Fix: Added string_choiceses as a member of TDILeaf