remove site from power_feeds
This commit is contained in:
parent
788aeacd9b
commit
2372c1eeff
|
@ -1,5 +1,4 @@
|
||||||
# - name: power feed 1
|
# - name: power feed 1
|
||||||
# site: AMS 1
|
|
||||||
# power_panel: power panel AMS 1
|
# power_panel: power panel AMS 1
|
||||||
# voltage: 208
|
# voltage: 208
|
||||||
# amperage: 50
|
# amperage: 50
|
||||||
|
@ -7,7 +6,6 @@
|
||||||
# phase: Single phase
|
# phase: Single phase
|
||||||
# rack: rack-01
|
# rack: rack-01
|
||||||
# - name: power feed 2
|
# - name: power feed 2
|
||||||
# site: SING 1
|
|
||||||
# power_panel: power panel SING 1
|
# power_panel: power panel SING 1
|
||||||
# voltage: 208
|
# voltage: 208
|
||||||
# amperage: 50
|
# amperage: 50
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from dcim.models import Rack, PowerPanel, PowerFeed, Site
|
from dcim.models import Rack, PowerPanel, PowerFeed
|
||||||
from startup_script_utils import *
|
from startup_script_utils import *
|
||||||
from tenancy.models import Tenant
|
from tenancy.models import Tenant
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@ if power_feeds is None:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
required_assocs = {
|
required_assocs = {
|
||||||
'power_panel': (PowerPanel, 'name'),
|
'power_panel': (PowerPanel, 'name')
|
||||||
'site': (Site, 'name')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
optional_assocs = {
|
optional_assocs = {
|
||||||
|
|
Loading…
Reference in New Issue