remove extraneous code
diff --git a/xos/services/cord/models.py b/xos/services/cord/models.py
index 35dc0ad..19b3ba6 100644
--- a/xos/services/cord/models.py
+++ b/xos/services/cord/models.py
@@ -356,7 +356,7 @@
class Meta:
app_label = "cord"
- access_agent = models.ForeignKey(AccessAgent, related_name='access_devices')
+ access_agent = models.ForeignKey(AccessAgent, related_name='port_mappings')
mac = models.CharField(max_length=32, help_text="MAC Address", null=True, blank=True)
port = models.CharField(max_length=32, help_text="Openflow port ID", null=True, blank=True)
diff --git a/xos/synchronizers/onos/steps/sync_onosapp.py b/xos/synchronizers/onos/steps/sync_onosapp.py
index dced6e1..3a9abfc 100644
--- a/xos/synchronizers/onos/steps/sync_onosapp.py
+++ b/xos/synchronizers/onos/steps/sync_onosapp.py
@@ -262,7 +262,7 @@
if voltdev.access_agent:
agent = voltdev.access_agent
olts = {}
- for port_mapping in agent.access_devices.all():
+ for port_mapping in agent.port_mappings.all():
olts[port_mapping.port] = port_mapping.mac
agent_config = {
"olts" : olts,