Topoprocessing - Refactor of mostly target fields' paths
[integration/test.git] / csit / variables / topoprocessing / TargetFields.py
diff --git a/csit/variables/topoprocessing/TargetFields.py b/csit/variables/topoprocessing/TargetFields.py
new file mode 100644 (file)
index 0000000..a5691ab
--- /dev/null
@@ -0,0 +1,24 @@
+"""
+Definitions of target field paths widely used throughout the Topoprocessing suites.
+"""
+# NT target fields
+ISIS_NODE_TE_ROUTER_ID_IPV4 = ('l3-unicast-igp-topology:igp-node-attributes'
+                               '/isis-topology:isis-node-attributes'
+                               '/isis-topology:ted'
+                               '/isis-topology:te-router-id-ipv4')
+ISIS_NODE_TE_ROUTER_ID_IPV6 = ('l3-unicast-igp-topology:igp-node-attributes'
+                               '/isis-topology:isis-node-attributes'
+                               '/isis-topology:ted'
+                               '/isis-topology:te-router-id-ipv6')
+IGP_LINK_METRIC = 'l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:metric'
+IGP_LINK_NAME = 'l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name'
+OVSDB_OFPORT = 'ovsdb:ofport'
+OVSDB_OVS_VERSION = 'ovsdb:ovs-version'
+OVSDB_TP_NAME = 'ovsdb:name'
+
+# Inventory target fields
+OPENFLOW_NODE_IP_ADDRESS = 'flow-node-inventory:ip-address'
+OPENFLOW_NODE_SERIAL_NUMBER = 'flow-node-inventory:serial-number'
+OPENFLOW_NODE_CONNECTOR_PORT_NUMBER = 'flow-node-inventory:port-number'
+OPENFLOW_NODE_CONNECTOR_MAXIMUM_SPEED = 'flow-node-inventory:maximum-speed'
+OPENFLOW_NODE_CONNECTOR_NAME = 'flow-node-inventory:name'