CiscoTestAutomation / genieparser

sub-component of Genie that parse the device output into structured datastructure
Apache License 2.0
251 stars 388 forks source link

bigip parser fails on Device' object has no attribute 'log' #695

Open LucRobalo opened 2 years ago

LucRobalo commented 2 years ago

while trying to add our f5 infrastructure to our pyats tests, we encounter the following error : Traceback (most recent call last): File "src/pyats/cli/base.py", line 207, in pyats.cli.base.Command.main File "src/genie/cli/commands/parser.py", line 265, in genie.cli.commands.parser.ParserCommand.run File "src/genie/cli/commands/parser.py", line 302, in genie.cli.commands.parser.ParserCommand.parse File "src/pyats/topology/device.py", line 559, in pyats.topology.device.Device.getattr AttributeError: 'Device' object has no attribute 'log'

the connection to the F( device is ok, the testbed is ok as well and we installed the rest connected python module. how can we fix this ?

stevedhn commented 2 years ago

Hi, can you provide us the device output, as well the commands you used?

LucRobalo commented 2 years ago

Command used : genie parse "/mgmt/tm/sys/management-ip" --testbed-file testbed/f5.yml --output genie_learn_f5_ssl -vvvv Bydevice you mean the device definition in the testbed ? devices: F5: alias: xxxx type: bigip os: bigip custom: abstraction: order: [os] connections: rest: class: rest.connector.Rest ip: xxxxx

protocol: https

      port: 443
  credentials:
    rest:
      username: admin
      password: xxxx