Ejemplo n.º 1
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.loc_chassis_data = {}
        self.man_addr_list = []
        self.mgmt_ip_str = None
Ejemplo n.º 2
0
    def __init__(self):
        """
        init the updater
        """
        super().__init__()
        self.db_conn = mibs.init_db()
        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}
        self.queue_type_map = {}

        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}

        self.port_queues_map = {}
        self.queue_stat_map = {}
        self.port_queue_list_map = {}

        self.mib_oid_to_queue_map = {}
        self.mib_oid_list = []

        self.queue_type_map = {}
Ejemplo n.º 3
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.loc_chassis_data = {}
        self.man_addr_list = []
        self.mgmt_ip_str = None
    def __init__(self):
        """
        init the updater
        """
        super().__init__()
        self.db_conn = mibs.init_db()
        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}
        self.queue_type_map = {}

        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}

        self.port_queues_map = {}
        self.queue_stat_map = {}
        self.port_queue_list_map = {}

        self.mib_oid_to_queue_map = {}
        self.mib_oid_list = []

        self.queue_type_map = {}
Ejemplo n.º 5
0
 def __init__(self):
     super().__init__()
     self.tos = 0 # ipCidrRouteTos
     self.db_conn = mibs.init_db()
     self.route_dest_map = {}
     self.route_dest_list = []
     ## loopback ip string -> ip address object
     self.loips = {}
Ejemplo n.º 6
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()

        self.prev_if_id_map = {}
        self.reinit_data()
        # call our update method once to "seed" data before the "Agent" starts accepting requests.
        self.update_data()
Ejemplo n.º 7
0
 def __init__(self):
     super().__init__()
     self.tos = 0  # ipCidrRouteTos
     self.db_conn = mibs.init_db()
     self.route_dest_map = {}
     self.route_dest_list = []
     ## loopback ip string -> ip address object
     self.loips = {}
Ejemplo n.º 8
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.reinit_data()

        # cache of interface counters
        # { sai_id -> { 'counter': 'value' } }
        self.lldp_counters = {}
        # call our update method once to "seed" data before the "Agent" starts accepting requests.
        self.update_data()
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        # establish connection to application database.
        self.db_conn.connect(self.db_conn.APPL_DB)
        self.if_range = []
        self.mgmt_ips = {}
        self.oid_name_map = {}
        self.mgmt_ip_str = None
        self.pubsub = None
Ejemplo n.º 10
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()

        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
        self.vlanmac_ifindex_map = {}
        self.vlanmac_ifindex_list = []
        self.if_bpid_map = {}
Ejemplo n.º 11
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        # establish connection to application database.
        self.db_conn.connect(self.db_conn.APPL_DB)
        self.if_range = []
        self.mgmt_ips = {}
        self.oid_name_map = {}
        self.mgmt_oid_name_map = {}
        self.mgmt_ip_str = None
        self.pubsub = None
Ejemplo n.º 12
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()

        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
        self.vlanmac_ifindex_map = {}
        self.vlanmac_ifindex_list = []
        self.if_bpid_map = {}
        self.bvid_vlan_map = {}
Ejemplo n.º 13
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.reinit_data()

        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}

        self.if_counters = {}
        self.if_range = []
        self.update_data()
Ejemplo n.º 14
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()
        self.reinit_data()

        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}

        # cache of interface counters
        self.if_counters = {}
        self.if_range = []
        # call our update method once to "seed" data before the "Agent" starts accepting requests.
        self.update_data()
Ejemplo n.º 15
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
        self.if_range = []

        # cache of interface counters
        # { sai_id -> { 'counter': 'value' } }
        self.lldp_counters = {}
Ejemplo n.º 16
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()

        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}

        # cache of interface counters
        self.if_counters = {}
        self.if_range = []
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
Ejemplo n.º 17
0
    def test_init_sync_d_lag_tables(self):
        db_conn = mibs.init_db()

        lag_name_if_name_map, \
        if_name_lag_name_map, \
        oid_lag_name_map = mibs.init_sync_d_lag_tables(db_conn)

        self.assertTrue(b"PortChannel04" in lag_name_if_name_map)
        self.assertTrue(
            lag_name_if_name_map[b"PortChannel04"] == [b"Ethernet124"])
        self.assertTrue(b"Ethernet124" in if_name_lag_name_map)
        self.assertTrue(
            if_name_lag_name_map[b"Ethernet124"] == b"PortChannel04")

        self.assertTrue(b"PortChannel_Temp" in lag_name_if_name_map)
        self.assertTrue(lag_name_if_name_map[b"PortChannel_Temp"] == [])
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        # establish connection to application database.
        self.db_conn.connect(mibs.APPL_DB)
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
        self.if_range = []

        # cache of port data
        # { if_name -> { 'key': 'value' } }
        self.loc_port_data = {}
        self.pubsub = None
Ejemplo n.º 19
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}

        self.mgmt_oid_name_map = {}

        self.if_range = []

        # cache of interface counters
        # { sai_id -> { 'counter': 'value' } }
        self.lldp_counters = {}
Ejemplo n.º 20
0
    def __init__(self):
        super().__init__()
        self.db_conn = mibs.init_db()

        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}

        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}

        # cache of interface counters
        self.if_counters = {}
        self.if_range = []
Ejemplo n.º 21
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        # establish connection to application database.
        self.db_conn.connect(mibs.APPL_DB)
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}

        self.mgmt_oid_name_map = {}
        self.mgmt_alias_map = {}

        self.if_range = []

        # cache of port data
        # { if_name -> { 'key': 'value' } }
        self.loc_port_data = {}
        self.pubsub = None
Ejemplo n.º 22
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()

        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}
        self.mgmt_oid_name_map = {}
        self.mgmt_alias_map = {}

        self.if_counters = {}
        self.if_range = []
        self.if_name_map = {}
        self.if_alias_map = {}
        self.if_id_map = {}
        self.oid_sai_map = {}
        self.oid_name_map = {}
        self.lag_name_if_name_map = {}
        self.if_name_lag_name_map = {}
        self.oid_lag_name_map = {}
Ejemplo n.º 23
0
 def __init__(self):
     super().__init__()
     self.db_conn = mibs.init_db()
     self.update_data()
Ejemplo n.º 24
0
 def __init__(self):
     super().__init__()
     self.tos = 0  # ipCidrRouteTos
     self.db_conn = mibs.init_db()
     self.update_data()
Ejemplo n.º 25
0
 def __init__(self):
     super().__init__()
     self.db_conn = mibs.init_db()
     self.nexthop_map = {}
     self.route_list = []
Ejemplo n.º 26
0
 def __init__(self):
     super().__init__()
     self.db_conn = mibs.init_db()
     self.hostname = socket.gethostname()
Ejemplo n.º 27
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.loc_chassis_data = {}
Ejemplo n.º 28
0
 def __init__(self):
     """
     init the handler
     """
     self.statedb = mibs.init_db()
     self.statedb.connect(self.statedb.STATE_DB)
Ejemplo n.º 29
0
 def __init__(self):
     super().__init__()
     self.db_conn = mibs.init_db()
     self.nexthop_map = {}
     self.route_list = []
Ejemplo n.º 30
0
    def __init__(self):
        super().__init__()

        self.db_conn = mibs.init_db()
        self.loc_chassis_data = {}