LCOV - code coverage report
Current view: top level - root/contrail/src/contrail-common/base - contrail_ports.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 43 91 47.3 %
Date: 2026-11-09 02:10:49 Functions: 21 45 46.7 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14