Beispiel #1
0
 def add_interfaces(self, interface_data):
     '''
     Value interface_name (\S+)
     Value service_instance (\d+)
     '''
     index = InterfaceUfinet.get_normalize_interface_name(
         interface_data["interface_name"])
     if index != '':
         if "BDI" in index:
             self.routed_interface = index
         else:
             self.interfaces[index] = interface_data
Beispiel #2
0
    def add_vfi(self, vfi_data):
        '''
                Value Filldown bride_domain (\d+)
                Value interface_name (\S+)
                Value neighbor_ip ((\d{1,3}\.){3}\d{1,3})
                Value vfi_vc_id (\d+)

                :return:
                '''
        index = InterfaceUfinet.get_normalize_interface_name(
            vfi_data["interface_name"])
        if index != '':
            if index not in self.vfis:
                self.vfis[index] = [vfi_data]
            else:
                self.vfis[index].append(vfi_data)