def _create_config(self):
     d = Config(name='test',
                backend='netjsonconfig.OpenWrt',
                config={'general': {'hostname': 'test'}},
                key='iaASGWE3fpRX0q44WiaY0rjF8ddQ2f7l')
     d.full_clean()
     d.save()
     return d
Exemplo n.º 2
0
 def _create_config(self):
     d = Config(name='test',
                backend='netjsonconfig.OpenWrt',
                config={'general':{'hostname':'test'}},
                key='00:11:22:33:44:55')
     d.full_clean()
     d.save()
     return d
 def _create_config(self):
     d = Config(
         name="test",
         backend="netjsonconfig.OpenWrt",
         mac_address=TEST_MACADDR,
         config={"general": {"hostname": "test"}},
         key="iaASGWE3fpRX0q44WiaY0rjF8ddQ2f7l",
     )
     d.full_clean()
     d.save()
     return d
 def _create_config(self):
     d = Config(name='test',
                backend='netjsonconfig.OpenWrt',
                config={'general': {'hostname': 'test'}},
                key='iaASGWE3fpRX0q44WiaY0rjF8ddQ2f7l')
     d.full_clean()
     d.save()
     return d
Exemplo n.º 5
0
 def _create_config(self):
     d = Config(name='test',
                backend='netjsonconfig.OpenWrt',
                config={'general':{'hostname':'test'}},
                key='00:11:22:33:44:55')
     d.full_clean()
     d.save()
     return d