threefoldtecharchive / 0-templates

0-robot templates
Apache License 2.0
1 stars 1 forks source link

Create bridge with 'none' mode, result error #258

Closed AhmedHanafy725 closed 5 years ago

AhmedHanafy725 commented 5 years ago

bridge_data = {'name': 'test_bridge', 'hwaddr': None, 'mode': 'none', 'nat': False, 'settings': {}}

Steps:

1- create bridge with this data using (template: github.com/threefoldtech/0-templates/bridge/0.0.1) 2- install the bridge

Actual Result:

Traceback (most recent call last)
/usr/local/bin/js_shell in <module>()
----> 1 ser.schedule_action('install').wait(die=True)

/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py in wait(self, timeout, die)
    129                 logger.critical('task is in error state, but no eco')
    130             else:
--> 131                 raise RuntimeError(self.eco.message)
    132 
    133         return self

RuntimeError: ['/', 'network', 'mode']

Problem:

none mode is passed here as string. Also in same file nic_remove don't need the bridge name, just the nic name. nic_list need the bridge name.