-UNIFICATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
+UNIFICATION_NT = '''<n:topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
<n:topology-id>topo:1</n:topology-id>
<correlations>
<output-model>{output-model}</output-model>
</aggregation>
</correlation>
</correlations>
- </topology>'''
+ </n:topology>'''
-UNIFICATION_NT_AGGREGATE_INSIDE = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
+UNIFICATION_NT_AGGREGATE_INSIDE = '''<n:topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
<n:topology-id>topo:1</n:topology-id>
<correlations>
<output-model>{output-model}</output-model>
</aggregation>
</correlation>
</correlations>
- </topology>'''
+ </n:topology>'''
-UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
+UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE = '''<n:topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
<n:topology-id>topo:1</n:topology-id>
<correlations>
<output-model>{output-model}</output-model>
</filtration>
</correlation>
</correlations>
- </topology>'''
+ </n:topology>'''
-UNIFICATION_FILTRATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
+UNIFICATION_FILTRATION_NT = '''<n:topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
<n:topology-id>topo:1</n:topology-id>
<correlations>
<output-model>{output-model}</output-model>
</filtration>
</correlation>
</correlations>
- </topology>'''
+ </n:topology>'''
-FILTRATION_NT = '''<topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
+FILTRATION_NT = '''<n:topology xmlns="urn:opendaylight:topology:correlation" xmlns:n="urn:TBD:params:xml:ns:yang:network-topology">
<n:topology-id>topo:1</n:topology-id>
<correlations>
<output-model>{output-model}</output-model>
</filtration>
</correlation>
</correlations>
- </topology>'''
+ </n:topology>'''
APPLY_FILTERS = '''
<apply-filters>{filter-id}</apply-filters>
NODE_ISIS = '''<node xmlns="urn:TBD:params:xml:ns:yang:network-topology"
xmlns:igp="urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"
- xmlns:isis="urn:TBD:params:xml:ns:yang:network:isis-topology">
+ xmlns:isis="urn:TBD:params:xml:ns:yang:network:isis-topology"
+ xmlns:ovsdb="urn:opendaylight:params:xml:ns:yang:ovsdb">
<node-id>{node-id}</node-id>
+ <ovsdb:ovs-version>{ovs-version}</ovsdb:ovs-version>
<igp:igp-node-attributes>
<isis:isis-node-attributes>
<isis:ted>
NODE_OPENFLOW = '''<node xmlns="urn:opendaylight:inventory" xmlns:flov-inv="urn:opendaylight:flow:inventory">
<id>{node-id}</id>
<flov-inv:ip-address>{ip-address}</flov-inv:ip-address>
+ <flov-inv:serial-number>{serial-number}</flov-inv:serial-number>
</node>'''
+
+TERMINATION_POINT_OVSDB = '''<termination-point xmlns="urn:TBD:params:xml:ns:yang:network-topology"
+ xmlns:ovsdb="urn:opendaylight:params:xml:ns:yang:ovsdb">
+ <tp-id>{tp-id}</tp-id>
+ <ovsdb:ofport>{ofport}</ovsdb:ofport>
+ </termination-point>'''
+
+NODE_CONNECTOR_OPENFLOW = '''<node-connector xmlns="urn:opendaylight:inventory" xmlns:flov-inv="urn:opendaylight:flow:inventory">
+ <id>{nc-id}</id>
+ <flov-inv:port-number>{port-number}</flov-inv:port-number>
+ </node-connector>'''
+
+LINK = '''<link xmlns="urn:TBD:params:xml:ns:yang:network-topology"
+ xmlns:igp="urn:TBD:params:xml:ns:yang:nt:l3-unicast-igp-topology"
+ xmlns:isis="urn:TBD:params:xml:ns:yang:network:isis-topology"
+ xmlns:ovsdb="urn:opendaylight:params:xml:ns:yang:ovsdb">
+ <link-id>{link-id}</link-id>
+ <source>
+ <source-node>{source-node}</source-node>
+ </source>
+ <destination>
+ <dest-node>{dest-node}</dest-node>
+ </destination>
+ <igp:igp-link-attributes>
+ <igp:name>{name}</igp:name>
+ <igp:metric>{metric}</igp:metric>
+ </igp:igp-link-attributes>
+ </link>'''