-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfgtable.get(key=...) Ignoring multiple key-fields. (semantics error in factory.cfgtable_encode_namekey) #1103
Labels
Comments
xerotolerance
added a commit
to xerotolerance/py-junos-eznc
that referenced
this issue
Apr 14, 2021
namekey_xpath needs to = "name" when "key-field" is not in data_dict and also when data_dict["key-field"] is an empty iterable
Can you share the netconf logs for this example. Need full configuration to replicate the scenario and verify it. |
@xerotolerance Kindly share the table/view YAML data to replicate the scenario and verify it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Walkthrough
FactoryCfgTable(table_name, data_dict)
, w/data_dict
containing the sections of the YAML spec. Ex (note the dict key 'key-field'):FactoryCfgTable
setsCfgTable
's constructor setscfgtable.get()
calls_encode_namekey(...)
callsself._data_dict.get(
"key","name")
instead of "key-field" causing the default field, name, to be checked every time regardless of whether the YAML definition specifies multiple key-fields.The text was updated successfully, but these errors were encountered: