Interface ApplyPolicyConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface ApplyPolicyConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for routing policies
This class represents the following YANG schema fragment defined in module openconfig-routing-policy
grouping apply-policy-config { leaf-list import-policy { type leafref { path /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:name; } ordered-by user; } leaf default-import-policy { type default-policy-type; default REJECT-ROUTE; } leaf-list export-policy { type leafref { path /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:name; } ordered-by user; } leaf default-export-policy { type default-policy-type; default REJECT-ROUTE; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn defaultExportPolicy, ornull
if it is not present.Return defaultImportPolicy, ornull
if it is not present.Return exportPolicy, ornull
if it is not present.Return importPolicy, ornull
if it is not present.Class<? extends ApplyPolicyConfig>
default @NonNull DefaultPolicyType
Return defaultExportPolicy, guaranteed to be non-null.default @NonNull DefaultPolicyType
Return defaultImportPolicy, guaranteed to be non-null.Return exportPolicy, guaranteed to be non-null.Return importPolicy, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends ApplyPolicyConfig> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getImportPolicy
Return importPolicy, ornull
if it is not present.list of policy names in sequence to be applied on receiving a routing update in the current context, e.g., for the current peer group, neighbor, address family, etc.
- Returns:
List<String>
importPolicy, ornull
if it is not present.
-
requireImportPolicy
Return importPolicy, guaranteed to be non-null.list of policy names in sequence to be applied on receiving a routing update in the current context, e.g., for the current peer group, neighbor, address family, etc.
- Returns:
List<String>
importPolicy, guaranteed to be non-null.- Throws:
NoSuchElementException
- if importPolicy is not present
-
getDefaultImportPolicy
DefaultPolicyType getDefaultImportPolicy()Return defaultImportPolicy, ornull
if it is not present.explicitly set a default policy if no policy definition in the import policy chain is satisfied.
- Returns:
DefaultPolicyType
defaultImportPolicy, ornull
if it is not present.
-
requireDefaultImportPolicy
Return defaultImportPolicy, guaranteed to be non-null.explicitly set a default policy if no policy definition in the import policy chain is satisfied.
- Returns:
DefaultPolicyType
defaultImportPolicy, guaranteed to be non-null.- Throws:
NoSuchElementException
- if defaultImportPolicy is not present
-
getExportPolicy
Return exportPolicy, ornull
if it is not present.list of policy names in sequence to be applied on sending a routing update in the current context, e.g., for the current peer group, neighbor, address family, etc.
- Returns:
List<String>
exportPolicy, ornull
if it is not present.
-
requireExportPolicy
Return exportPolicy, guaranteed to be non-null.list of policy names in sequence to be applied on sending a routing update in the current context, e.g., for the current peer group, neighbor, address family, etc.
- Returns:
List<String>
exportPolicy, guaranteed to be non-null.- Throws:
NoSuchElementException
- if exportPolicy is not present
-
getDefaultExportPolicy
DefaultPolicyType getDefaultExportPolicy()Return defaultExportPolicy, ornull
if it is not present.explicitly set a default policy if no policy definition in the export policy chain is satisfied.
- Returns:
DefaultPolicyType
defaultExportPolicy, ornull
if it is not present.
-
requireDefaultExportPolicy
Return defaultExportPolicy, guaranteed to be non-null.explicitly set a default policy if no policy definition in the export policy chain is satisfied.
- Returns:
DefaultPolicyType
defaultExportPolicy, guaranteed to be non-null.- Throws:
NoSuchElementException
- if defaultExportPolicy is not present
-