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.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable SetAsPathPrepend
getSetAsPathPrepend()
action to prepend local AS number to the AS-path a specified number of times@Nullable SetCommunity
getSetCommunity()
action to set the community attributes of the route, along with options to modify how the community is modified@Nullable SetExtCommunity
getSetExtCommunity()
Action to set the extended community attributes of the route, along with options to modify how the community is modified@Nullable org.opendaylight.yangtools.yang.common.Uint32
getSetLocalPref()
set the local pref attribute on the route update@Nullable BgpSetMedType
getSetMed()
set the med metric attribute in the route update@Nullable BgpNextHopType
getSetNextHop()
set the next-hop attribute in the route update@Nullable BgpOriginAttrType
getSetRouteOrigin()
set the origin attribute to the specified valuedefault Class<BgpActions>
implementedInterface()
-
-
-
Method Detail
-
implementedInterface
default Class<BgpActions> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSetAsPathPrepend
@Nullable 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.SetAsPathPrepend
setAsPathPrepend
, ornull
if not present
-
getSetCommunity
@Nullable 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.SetCommunity
setCommunity
, ornull
if not present
-
getSetExtCommunity
@Nullable 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.SetExtCommunity
setExtCommunity
, ornull
if not present
-
getSetRouteOrigin
@Nullable BgpOriginAttrType getSetRouteOrigin()
set the origin attribute to the specified value- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.BgpOriginAttrType
setRouteOrigin
, ornull
if not present
-
getSetLocalPref
@Nullable org.opendaylight.yangtools.yang.common.Uint32 getSetLocalPref()
set the local pref attribute on the route update- Returns:
org.opendaylight.yangtools.yang.common.Uint32
setLocalPref
, ornull
if not present
-
getSetNextHop
@Nullable BgpNextHopType getSetNextHop()
set the next-hop attribute in the route update- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.BgpNextHopType
setNextHop
, ornull
if not present
-
getSetMed
@Nullable BgpSetMedType getSetMed()
set the med metric attribute in the route update- Returns:
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.BgpSetMedType
setMed
, ornull
if not present
-
-