def __init__(self, puid, source, nlri, src_ver_num, pattrs=None, nexthop=None, is_withdraw=False, label_list=None): """Initializes a Vrf path. Parameters: - `puid`: (str) path ID, identifies VPN path from which this VRF path was imported. - `label_list`: (list) List of labels for this path. Note: other parameters are as documented in super class. """ if self.ROUTE_FAMILY.safi in [IP_FLOWSPEC, VPN_FLOWSPEC]: nexthop = '0.0.0.0' Path.__init__(self, source, nlri, src_ver_num, pattrs, nexthop, is_withdraw) if label_list is None: label_list = [] self._label_list = label_list self._puid = puid
def __init__(self, source, nlri, src_ver_num, pattrs=None, nexthop='0.0.0.0', is_withdraw=False, med_set_by_target_neighbor=False): Path.__init__(self, source, nlri, src_ver_num, pattrs, nexthop, is_withdraw, med_set_by_target_neighbor)
def __init__(self, puid, source, nlri, src_ver_num, pattrs=None, nexthop=None, is_withdraw=False, label_list=None): """Initializes a Vrf path. Parameters: - `puid`: (str) path ID, identifies VPN path from which this VRF path was imported. - `label_list`: (list) List of labels for this path. Note: other parameters are as documented in super class. """ Path.__init__(self, source, nlri, src_ver_num, pattrs, nexthop, is_withdraw) if label_list is None: label_list = [] self._label_list = label_list self._puid = puid