1 define(['app/ovsdb/ovsdb.module'], function (ovsdb) {
3 ovsdb.register.constant('nodeIdentifier', {
6 REMOTE_PORT: 'remote-port',
7 SRC_NODE: 'source-node',
8 DEST_NODE: 'dest-node',
11 ADDRESSES: 'addresses'
14 ovsdb.register.constant('ovsNodeKeys', {
16 CONNECTION_INFO: 'ovsdb:connection-info',
17 OVS_VERSION: 'ovsdb:ovs-version',
19 LOCAL_PORT: 'local-port',
20 REMOTE_IP: 'remote-ip',
21 REMOTE_PORT: 'remote-port',
22 OTHER_CONFIG: 'ovsdb:openvswitch-other-configs',
23 OTHER_CONFIG_KEY: 'other-config-key',
24 OTHER_CONFIG_VALUE: 'other-config-value'
27 ovsdb.register.constant('bridgeNodeKeys', {
29 CONTROLLER_ENTRY: 'ovsdb:controller-entry',
31 IS_CONNECTED: 'is-connected',
32 DATA_PATH: 'ovsdb:datapath-id',
33 BRIDGE_NAME: 'ovsdb:bridge-name',
34 TP: 'termination-point'
37 ovsdb.register.constant('tpKeys', {
39 OF_PORT: 'ovsdb:ofport',
40 INTERFACE_TYPE: 'ovsdb:interface-type',
41 ATTACHED_MAC: 'attached-mac',
43 EXTERNAL_KEY_ID: 'external-id-key',
44 EXTERNAL_KEY_VALUE: 'external-id-value'
47 ovsdb.register.constant('flowInfoKeys', {
48 FEATURE: 'flow-node-inventory:switch-features',
49 SOFTWARE: 'flow-node-inventory:software',
50 HARDWARE: 'flow-node-inventory:hardware',
51 MANUFACTURER: 'flow-node-inventory:manufacturer',
52 IP: 'flow-node-inventory:ip-address',
53 TABLE: 'flow-node-inventory:table'
56 ovsdb.register.constant('linkIdentifier', {
58 l3_unicast: 'l3-unicast-igp-topology:igp-link-attributes',
59 overlay_tunnel_type: 'overlay:tunnel-type',
60 supported_link: 'supporting-link',
65 ovsdb.register.constant('OVSConstant', {
67 INTERNAL: 'ovsdb:interface-type-internal',
68 VXLAN: 'ovsdb:interface-type-vxlan'