Line data Source code
1 : /* 2 : * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. 3 : */ 4 : 5 : #include "base/contrail_ports.h" 6 : 7 345 : vnsConstants& ContrailPorts::VnsPorts() { 8 345 : static vnsConstants vnsPort; 9 345 : return vnsPort; 10 : } 11 : 12 : // HTTP (Introspect) ports 13 0 : const uint16_t ContrailPorts::HttpPortConfigNodemgr() { 14 0 : return VnsPorts().HttpPortConfigNodemgr; 15 : } 16 : 17 0 : const uint16_t ContrailPorts::HttpPortControlNodemgr() { 18 0 : return VnsPorts().HttpPortControlNodemgr; 19 : } 20 : 21 0 : const uint16_t ContrailPorts::HttpPortVRouterNodemgr() { 22 0 : return VnsPorts().HttpPortVRouterNodemgr; 23 : } 24 : 25 0 : const uint16_t ContrailPorts::HttpPortDatabaseNodemgr() { 26 0 : return VnsPorts().HttpPortDatabaseNodemgr; 27 : } 28 : 29 0 : const uint16_t ContrailPorts::HttpPortAnalyticsNodemgr() { 30 0 : return VnsPorts().HttpPortAnalyticsNodemgr; 31 : } 32 : 33 14 : const uint16_t ContrailPorts::HttpPortControl() { 34 14 : return VnsPorts().HttpPortControl; 35 : } 36 : 37 0 : const uint16_t ContrailPorts::HttpPortApiServer() { 38 0 : return VnsPorts().HttpPortApiServer; 39 : } 40 : 41 3 : const uint16_t ContrailPorts::HttpPortAgent() { 42 3 : return VnsPorts().HttpPortAgent; 43 : } 44 : 45 0 : const uint16_t ContrailPorts::HttpPortSchemaTransformer() { 46 0 : return VnsPorts().HttpPortSchemaTransformer; 47 : } 48 : 49 0 : const uint16_t ContrailPorts::HttpPortSvcMonitor() { 50 0 : return VnsPorts().HttpPortSvcMonitor; 51 : } 52 : 53 9 : const uint16_t ContrailPorts::HttpPortCollector() { 54 9 : return VnsPorts().HttpPortCollector; 55 : } 56 : 57 0 : const uint16_t ContrailPorts::HttpPortOpserver() { 58 0 : return VnsPorts().HttpPortOpserver; 59 : } 60 : 61 52 : const uint16_t ContrailPorts::HttpPortQueryEngine() { 62 52 : return VnsPorts().HttpPortQueryEngine; 63 : } 64 : 65 10 : const uint16_t ContrailPorts::HttpPortDns() { 66 10 : return VnsPorts().HttpPortDns; 67 : } 68 : 69 0 : const uint16_t ContrailPorts::HttpPortKubeManager() { 70 0 : return VnsPorts().HttpPortKubeManager; 71 : } 72 : 73 : // Supervisor control ports 74 0 : const uint16_t ContrailPorts::AnalyticsSupervisor() { 75 0 : return VnsPorts().AnalyticsSupervisorPort; 76 : } 77 : 78 0 : const uint16_t ContrailPorts::ControlSupervisor() { 79 0 : return VnsPorts().ControlSupervisorPort; 80 : } 81 : 82 0 : const uint16_t ContrailPorts::ConfigSupervisor() { 83 0 : return VnsPorts().ConfigSupervisorPort; 84 : } 85 : 86 0 : const uint16_t ContrailPorts::VRouterSupervisor() { 87 0 : return VnsPorts().VRouterSupervisorPort; 88 : } 89 : 90 0 : const uint16_t ContrailPorts::DatabaseSupervisor() { 91 0 : return VnsPorts().DatabaseSupervisorPort; 92 : } 93 : 94 0 : const uint16_t ContrailPorts::WebuiSupervisor() { 95 0 : return VnsPorts().WebuiSupervisorPort; 96 : } 97 : 98 : // Daemon ports 99 11 : const uint16_t ContrailPorts::DnsServerPort() { 100 11 : return VnsPorts().DnsServerPort; 101 : } 102 : 103 14 : const uint16_t ContrailPorts::ControlBgp() { 104 14 : return VnsPorts().ControlBgpPort; 105 : } 106 : 107 14 : const uint16_t ContrailPorts::ControlXmpp() { 108 14 : return VnsPorts().ControlXmppPort; 109 : } 110 : 111 0 : const uint16_t ContrailPorts::DiscoveryServerPort() { 112 0 : return VnsPorts().DiscoveryServerPort; 113 : } 114 : 115 52 : const uint16_t ContrailPorts::RedisQueryPort() { 116 52 : return VnsPorts().RedisQueryPort; 117 : } 118 : 119 9 : const uint16_t ContrailPorts::RedisUvePort() { 120 9 : return VnsPorts().RedisUvePort; 121 : } 122 : 123 8 : const uint16_t ContrailPorts::KeystonePort() { 124 8 : return VnsPorts().KeystonePort; 125 : } 126 : 127 0 : const uint16_t ContrailPorts::RedisWebuiPort() { 128 0 : return VnsPorts().RedisWebuiPort; 129 : } 130 : 131 0 : const uint16_t ContrailPorts::WebConsole() { 132 0 : return VnsPorts().WebConsolePort; 133 : } 134 : 135 0 : const uint16_t ContrailPorts::OpServer() { 136 0 : return VnsPorts().OpServerPort; 137 : } 138 : 139 0 : const uint16_t ContrailPorts::ApiServer() { 140 0 : return VnsPorts().ApiServerPort; 141 : } 142 : 143 10 : const uint16_t ContrailPorts::CollectorPort() { 144 10 : return VnsPorts().CollectorPort; 145 : } 146 : 147 0 : const uint16_t ContrailPorts::CollectorProtobufPort() { 148 0 : return VnsPorts().CollectorProtobufPort; 149 : } 150 : 151 8 : const uint16_t ContrailPorts::CollectorStructuredSyslogPort() { 152 8 : return VnsPorts().CollectorStructuredSyslogPort; 153 : } 154 : 155 1 : const uint16_t ContrailPorts::DnsXmpp() { 156 1 : return VnsPorts().DnsXmppPort; 157 : } 158 : 159 102 : const uint16_t ContrailPorts::DnsRndc() { 160 102 : return VnsPorts().DnsRndcPort; 161 : } 162 : 163 0 : const uint16_t ContrailPorts::ApiServerOpen() { 164 0 : return VnsPorts().ApiServerOpenPort; 165 : } 166 : 167 0 : const uint16_t ContrailPorts::AnalyzerUdpPort() { 168 0 : return VnsPorts().AnalyzerUdpPort; 169 : } 170 : 171 3 : const uint16_t ContrailPorts::PortIpcVrouterAgentPort() { 172 3 : return VnsPorts().PortIpcVrouterAgentPort; 173 : } 174 : 175 3 : const uint16_t ContrailPorts::MetadataProxyVrouterAgentPort() { 176 3 : return VnsPorts().MetadataProxyVrouterAgentPort; 177 : } 178 : 179 3 : const uint16_t ContrailPorts::VrouterAgentMirrorClientUdpPort() { 180 3 : return VnsPorts().VrouterAgentMirrorClientUdpPort; 181 : } 182 : 183 3 : const uint16_t ContrailPorts::VrouterAgentDnsClientUdpPort() { 184 3 : return VnsPorts().VrouterAgentDnsClientUdpPort; 185 : } 186 : 187 16 : const uint16_t ContrailPorts::ContrailDnsClientUdpPort() { 188 16 : return VnsPorts().ContrailDnsClientUdpPort; 189 : }