This module contains a collection of YANG definitions for Cisco IOS-XR flowspec package configuration. This YANG module augment...
Version: 2021-01-05
module Cisco-IOS-XR-um-flowspec-cfg { yang-version 1; namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-um-flowspec-cfg"; prefix um-flowspec-cfg; import Cisco-IOS-XR-types { prefix xr; } import Cisco-IOS-XR-um-interface-cfg { prefix a1; } import cisco-semver { prefix semver; } organization "Cisco Systems, Inc."; contact "Cisco Systems, Inc. Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: cs-yang@cisco.com"; description "This module contains a collection of YANG definitions for Cisco IOS-XR flowspec package configuration. This YANG module augments the modules with configuration data. Copyright (c) 2020-2021 by Cisco Systems, Inc. All rights reserved."; revision "2021-01-05" { description "Initial release"; } semver:module-version "1.0.0"; grouping IF-IPV4-BODY { container ipv4 { description "IPv4 interface subcommands"; container flowspec { description "Flowspec on IPv4 interface"; container disable { presence "Indicates a disable node is configured."; description "Disable FlowSpec on this interface"; } // container disable } // container flowspec } // container ipv4 } // grouping IF-IPV4-BODY grouping IF-IPV6-BODY { container ipv6 { description "IPv6 interface subcommands"; container flowspec { description "Flowspec on IPv6 interface"; container disable { presence "Indicates a disable node is configured."; description "Disable flowspec on interface"; } // container disable } // container flowspec } // container ipv6 } // grouping IF-IPV6-BODY augment /a1:interfaces/a1:interface { uses IF-IPV4-BODY; } augment /a1:interfaces/a1:interface-preconfigure { uses IF-IPV4-BODY; } augment /a1:interfaces/a1:interface { uses IF-IPV6-BODY; } augment /a1:interfaces/a1:interface-preconfigure { uses IF-IPV6-BODY; } container flowspec { presence "Indicates a flowspec node is configured."; description "FlowSpec configuration"; container address-families { description "Address Family Identifier Type (IPv4/IPv6)"; list address-family { key "af-name"; description "Address Family Identifier Type (IPv4/IPv6)"; leaf af-name { type enumeration { enum "ipv4" { value 1; description "IPv4 FlowSpec"; } enum "ipv6" { value 2; description "IPv6 FlowSpec"; } } description "Address Family Identifier Type (IPv4/IPv6)"; } container service-policies { description "Service Policy configuration"; list service-policy { key "type policy-name"; leaf type { type enumeration { enum "pbr" { value 2; description "PBR policy type"; } } description "Type of the service policy"; } leaf policy-name { type xr:Cisco-ios-xr-string { length "1..1024"; } description "Policy map name"; } container local { presence "Indicates a local node is configured."; description "Only install locally, do not redistribute."; } // container local } // list service-policy } // container service-policies container local-install { description "Local installation of FlowSpec policy"; container interface-all { presence "Indicates a interface-all node is configured."; description "Install FlowSpec policy on all interfaces"; } // container interface-all } // container local-install } // list address-family } // container address-families container vrfs { description "VRF configuration"; list vrf { key "vrf-name"; description "VRF configuration"; leaf vrf-name { type xr:Cisco-ios-xr-string { length "1..32"; } description "VRF configuration"; } container address-families { description "Address Family Identifier Type (IPv4/IPv6)"; list address-family { key "af-name"; description "Address Family Identifier Type (IPv4/IPv6)"; leaf af-name { type enumeration { enum "ipv4" { value 1; description "IPv4 FlowSpec"; } enum "ipv6" { value 2; description "IPv6 FlowSpec"; } } description "Address Family Identifier Type (IPv4/IPv6)"; } container service-policies { description "Service Policy configuration"; list service-policy { key "type policy-name"; leaf type { type enumeration { enum "pbr" { value 2; description "PBR policy type"; } } description "Type of the service policy"; } leaf policy-name { type xr:Cisco-ios-xr-string { length "1..1024"; } description "Policy map name"; } container local { presence "Indicates a local node is configured."; description "Only install locally, do not redistribute."; } // container local } // list service-policy } // container service-policies container local-install { description "Local installation of FlowSpec policy"; container interface-all { presence "Indicates a interface-all node is configured."; description "Install FlowSpec policy on all interfaces"; } // container interface-all } // container local-install } // list address-family } // container address-families } // list vrf } // container vrfs container local-install { description "Local installation of FlowSpec policy"; container interface-all { presence "Indicates a interface-all node is configured."; description "Install FlowSpec policy on all interfaces"; } // container interface-all } // container local-install } // container flowspec } // module Cisco-IOS-XR-um-flowspec-cfg
© 2023 YumaWorks, Inc. All rights reserved.