trex-core icon indicating copy to clipboard operation
trex-core copied to clipboard

remove_protocol() in bird_cfg_creator.py fails

Open andreasbourges opened this issue 2 years ago • 0 comments

from_conf is not known to this method:

   def remove_protocol(self, protocol, name):
        if protocol in self.protocols.keys() and name in self.protocols[protocol]:
            if self.protocols[protocol][name][from_conf]:
                raise Exception('cannot delete %s protocol named "%s", it is from conf file' % (protocol, name))

...and causes a runtime-error:

if self.protocols[protocol][name][from_conf]:                                         │
  NameError: name 'from_conf' is not defined

```                                                                                                                                                                  │
                                                                              

andreasbourges avatar Nov 15 '22 13:11 andreasbourges