Ovsdb-UI : Change icon and attempt to fix invisible vxlan
[netvirt.git] / ovsdb-ui / module / src / main / resources / ovsdb / ovsdb.constant.js
1 define(['app/ovsdb/ovsdb.module'], function (ovsdb) {
2
3   ovsdb.register.constant('nodeIdentifier', {
4     IP: 'ip',
5     ID: 'node-id',
6     REMOTE_PORT: 'remote-port',
7     SRC_NODE: 'source-node',
8     DEST_NODE: 'dest-node',
9     SRC_TP: 'source-tp',
10     DEST_TP: 'dest-tp',
11     ADDRESSES: 'addresses'
12   });
13
14   ovsdb.register.constant('ovsNodeKeys', {
15     NODE_ID: 'node-id',
16     CONNECTION_INFO: 'ovsdb:connection-info',
17     OVS_VERSION: 'ovsdb:ovs-version',
18     LOCAL_IP: 'local-ip',
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'
25   });
26
27   ovsdb.register.constant('bridgeNodeKeys', {
28     NODE_ID: 'node-id',
29     CONTROLLER_ENTRY: 'ovsdb:controller-entry',
30     TARGET: 'target',
31     IS_CONNECTED: 'is-connected',
32     DATA_PATH: 'ovsdb:datapath-id',
33     BRIDGE_NAME: 'ovsdb:bridge-name',
34     TP: 'termination-point'
35   });
36
37   ovsdb.register.constant('tpKeys', {
38     NAME: 'ovsdb:name',
39     OF_PORT: 'ovsdb:ofport',
40     INTERFACE_TYPE: 'ovsdb:interface-type',
41     ATTACHED_MAC: 'attached-mac',
42     IFACE_ID: 'iface-id',
43     EXTERNAL_KEY_ID: 'external-id-key',
44     EXTERNAL_KEY_VALUE: 'external-id-value'
45   });
46
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'
54   });
55
56   ovsdb.register.constant('linkIdentifier', {
57     SRC: 'source',
58     l3_unicast: 'l3-unicast-igp-topology:igp-link-attributes',
59     overlay_tunnel_type: 'overlay:tunnel-type',
60     supported_link: 'supporting-link',
61     ID: 'link-id',
62     DEST: 'destination'
63   });
64
65   ovsdb.register.constant('OVSConstant', {
66     TP_TYPE: {
67       INTERNAL: 'ovsdb:interface-type-internal',
68       VXLAN: 'ovsdb:interface-type-vxlan'
69     }
70   })
71
72 });