Interface BgpActions
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<BgpActions>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<Actions1>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
public interface BgpActions extends org.opendaylight.yangtools.yang.binding.ChildOf<Actions1>, org.opendaylight.yangtools.yang.binding.Augmentable<BgpActions>
Definitions for policy action statements that change BGP-specific attributes of the routeThis class represents the following YANG schema fragment defined in module openconfig-bgp-policy
container bgp-actions { container set-as-path-prepend { presence "node is present in the config data to use the AS prepend action"; leaf repeat-n { type uint8; } } container set-community { presence "node is present in the config data when set-community action is used"; choice set-community-method { case inline { list communities { uses bgp-t:community; } } case reference { leaf community-set-ref { type leafref { path /rpol:routing-policy/rpol:defined-sets/bgp-pol:bgp-defined-sets/bgp-pol:community-sets/bgp-pol:community-set/bgp-pol:community-set-name; } } } } leaf options { type bgp-set-community-option-type; } } container set-ext-community { presence "node is present in the config data when set-community action is used"; choice set-ext-community-method { case inline { list ext-community-member { uses bgp-t:extended-community; } } case reference { leaf ext-community-set-ref { type leafref { path /rpol:routing-policy/rpol:defined-sets/bgp-pol:bgp-defined-sets/bgp-pol:ext-community-sets/bgp-pol:ext-community-set/bgp-pol:ext-community-set-name; } } } } leaf options { type bgp-set-community-option-type; } } leaf set-route-origin { type bgp-types:bgp-origin-attr-type; } leaf set-local-pref { type uint32; } leaf set-next-hop { type bgp-next-hop-type; } leaf set-med { type bgp-set-med-type; } }The schema path to identify an instance is openconfig-bgp-policy/routing-policy/policy-definitions/policy-definition/statements/statement/actions/(http://openconfig.net/yang/bgp-policy?revision=2015-10-09)bgp-actionsTo create instances of this class use
BgpActionsBuilder.- See Also:
BgpActionsBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SetAsPathPrependgetSetAsPathPrepend()action to prepend local AS number to the AS-path a specified number of timesSetCommunitygetSetCommunity()action to set the community attributes of the route, along with options to modify how the community is modifiedSetExtCommunitygetSetExtCommunity()Action to set the extended community attributes of the route, along with options to modify how the community is modifiedorg.opendaylight.yangtools.yang.common.Uint32getSetLocalPref()set the local pref attribute on the route updateBgpSetMedTypegetSetMed()set the med metric attribute in the route updateBgpNextHopTypegetSetNextHop()set the next-hop attribute in the route updateBgpOriginAttrTypegetSetRouteOrigin()set the origin attribute to the specified valuedefault Class<BgpActions>implementedInterface()
-
-
-
Method Detail
-
implementedInterface
default Class<BgpActions> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSetAsPathPrepend
SetAsPathPrepend getSetAsPathPrepend()
action to prepend local AS number to the AS-path a specified number of times- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.SetAsPathPrependsetAsPathPrepend, ornullif not present
-
getSetCommunity
SetCommunity getSetCommunity()
action to set the community attributes of the route, along with options to modify how the community is modified- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.SetCommunitysetCommunity, ornullif not present
-
getSetExtCommunity
SetExtCommunity getSetExtCommunity()
Action to set the extended community attributes of the route, along with options to modify how the community is modified- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.SetExtCommunitysetExtCommunity, ornullif not present
-
getSetRouteOrigin
BgpOriginAttrType getSetRouteOrigin()
set the origin attribute to the specified value- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.BgpOriginAttrTypesetRouteOrigin, ornullif not present
-
getSetLocalPref
org.opendaylight.yangtools.yang.common.Uint32 getSetLocalPref()
set the local pref attribute on the route update- Returns:
org.opendaylight.yangtools.yang.common.Uint32setLocalPref, ornullif not present
-
getSetNextHop
BgpNextHopType getSetNextHop()
set the next-hop attribute in the route update- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.BgpNextHopTypesetNextHop, ornullif not present
-
getSetMed
BgpSetMedType getSetMed()
set the med metric attribute in the route update- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.BgpSetMedTypesetMed, ornullif not present
-
-