[AETHER-1299] Implement SPINE pinning policy in SR.
Additionally introduces a new CLI command. Also this review addresses
comments coming from the previous patch [24393] and fixes some issue
seen in the previous patch.
Change-Id: I5362d95ebe1c237eb5bdb13ec34ab109d25f9f7a
diff --git a/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
index f65d4ea..4b7a96f 100644
--- a/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
+++ b/impl/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -780,11 +780,7 @@
return true;
}
- /**
- * Returns the VlanId assigned internally by default to unconfigured ports.
- *
- * @return the default internal vlan id
- */
+ @Override
public VlanId getDefaultInternalVlan() {
return VlanId.vlanId((short) defaultInternalVlan);
}
@@ -1204,6 +1200,11 @@
return deviceConfiguration.getEdgeDeviceIds();
}
+ @Override
+ public MacAddress getDeviceMacAddress(DeviceId deviceId) throws DeviceConfigNotFoundException {
+ return deviceConfiguration.getDeviceMac(deviceId);
+ }
+
/**
* Returns locations of given resolved route.
*