Fabric test additions
Change-Id: Iaa969faca99d4878fef9b773c381f22c6d45cd3a
diff --git a/src/test/cord-api/Properties/RestApiProperties.py b/src/test/cord-api/Properties/RestApiProperties.py
index a06473d..757b5b2 100644
--- a/src/test/cord-api/Properties/RestApiProperties.py
+++ b/src/test/cord-api/Properties/RestApiProperties.py
@@ -62,3 +62,6 @@
CH_CORE_NETWORK_TEMPLATES = '/xosapi/v1/core/networktemplates'
VSG_TENANT = '/xosapi/v1/vsg/vsgserviceinstances'
HWVSG_TENANT = '/xosapi/v1/vsg-hw/vsghwserviceinstances'
+FABRIC_SWITCH = '/xosapi/v1/fabric/switches'
+SWITCH_PORT = '/xosapi/v1/fabric/switchports'
+PORT_INTERFACE = '/xosapi/v1/fabric/portinterfaces'
diff --git a/src/test/cord-api/Tests/data/FabricPortInterface.json b/src/test/cord-api/Tests/data/FabricPortInterface.json
new file mode 100644
index 0000000..c711096
--- /dev/null
+++ b/src/test/cord-api/Tests/data/FabricPortInterface.json
@@ -0,0 +1,20 @@
+{
+ "FabricPortInterface" : [
+ {
+ "name": "OLT1-Interface-1",
+ "ips": "10.8.2.254",
+ "port_id": 1
+ },
+ {
+
+ "name": "Interface-2",
+ "ips": "192.22.18.4",
+ "port_id": 2
+ },
+ {
+ "name": "Interface-2",
+ "ips": "192.22.18.4",
+ "port_id": 3
+ }
+ ]
+}
diff --git a/src/test/cord-api/Tests/data/FabricSwitch.json b/src/test/cord-api/Tests/data/FabricSwitch.json
new file mode 100644
index 0000000..e9cdcb6
--- /dev/null
+++ b/src/test/cord-api/Tests/data/FabricSwitch.json
@@ -0,0 +1,40 @@
+{
+ "FabricSwitchInfo" : [
+ {
+ "driver": "ofdpa3",
+ "ipv4Loopback": "192.168.9.100",
+ "ipv4NodeSid": 17,
+ "isEdgeRouter": True,
+ "name": "Fabric Switch - Leaf1",
+ "ofId": "of:0000cc37abd93769",
+ "routerMac": "00:22:33"
+ },
+ {
+ "driver": "ofdpa3",
+ "ipv4Loopback": "192.168.9.101",
+ "ipv4NodeSid": 17,
+ "isEdgeRouter": True,
+ "name": "Fabric Switch- Leaf2",
+ "ofId": "of:0000cc37abb6b564",
+ "routerMac": "99:88:00"
+ },
+ {
+ "driver": "ofdpa3",
+ "ipv4Loopback": "192.168.9.100",
+ "ipv4NodeSid": 17,
+ "isEdgeRouter": False,
+ "name": "Fabric Switch - Spine1",
+ "ofId": "of:0000cc37ab5b6da8",
+ "routerMac": "44:33:55"
+ },
+ {
+ "driver": "ofdpa3",
+ "ipv4Loopback": "192.168.9.100",
+ "ipv4NodeSid": 17,
+ "isEdgeRouter": False,
+ "name": "Fabric Switch - Spine2",
+ "ofId": "of:0000cc37abd9386d",
+ "routerMac": "String"
+ }
+ ]
+}
diff --git a/src/test/cord-api/Tests/data/FabricSwitchPort.json b/src/test/cord-api/Tests/data/FabricSwitchPort.json
new file mode 100644
index 0000000..643194b
--- /dev/null
+++ b/src/test/cord-api/Tests/data/FabricSwitchPort.json
@@ -0,0 +1,8 @@
+{
+ "FabricSwitchPort" : [
+ {
+ "portId": 7
+ "switch_id": 1
+ }
+ ]
+}