Exemplo n.º 1
0
 def format_structure(self):
     # Restore the full CID of the source and destination TN interfaces
     for mapping in self.mapping_tn_se_of:
         for src_dst_value in self.src_dst_values:
             # Domains connected through static links may not have "tn" data
             if "tn" in mapping[src_dst_value]:
                mapping[src_dst_value]["tn"] = self.format_verify_tn_interface(mapping[src_dst_value]["tn"])
     # Remove paths where either source or destination are invalid
     self.mapping_tn_se_of = FilterUtils.prune_invalid_paths(self.mapping_tn_se_of)
     self.mapping_tn_se_of = FilterUtils.prune_unlinked_dpids(self.mapping_tn_se_of, self.src_of_cids, \
         self.dst_of_cids, self.of_cids_check_by_auth)
     return self.mapping_tn_se_of
Exemplo n.º 2
0
 def format_structure(self):
     # Restore the full CID of the source and destination TN interfaces
     for mapping in self.mapping_tn_se_of:
         for src_dst_value in self.src_dst_values:
             # Domains connected through static links may not have "tn" data
             if "tn" in mapping[src_dst_value]:
                 mapping[src_dst_value][
                     "tn"] = self.format_verify_tn_interface(
                         mapping[src_dst_value]["tn"])
     # Remove paths where either source or destination are invalid
     self.mapping_tn_se_of = FilterUtils.prune_invalid_paths(
         self.mapping_tn_se_of)
     self.mapping_tn_se_of = FilterUtils.prune_unlinked_dpids(self.mapping_tn_se_of, self.src_of_cids, \
         self.dst_of_cids, self.of_cids_check_by_auth)
     return self.mapping_tn_se_of