def _create_config(self):
     d = Config(name='test',
                backend='netjsonconfig.OpenWrt',
                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
예제 #3
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
예제 #4
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