Cisco-IOS-XE-wireless-ap-cfg

Model for managing AP configurations. Copyright (c) 2016-2020 by Cisco Systems, Inc. All rights reserved.

  • Version: 2021-03-01

    Cisco-IOS-XE-wireless-ap-cfg@2021-03-01


    
      module Cisco-IOS-XE-wireless-ap-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-wireless-ap-cfg";
    
        prefix wireless-ap-cfg;
    
        import Cisco-IOS-XE-wireless-ap-types {
          prefix wireless-ap-types;
        }
        import ietf-yang-types {
          prefix yang;
        }
        import cisco-semver {
          prefix cisco-semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
    
         Postal: 170 W Tasman Drive
         San Jose, CA 95134
    
         Tel: +1 1800 553-NETS
    
         E-mail: cs-yang@cisco.com";
    
        description
          "Model for managing AP configurations.
         Copyright (c) 2016-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-03-01" {
          description
            "-Add ASCII 32-126 and leading/trailing spaces restriction for AP location name";
          reference
            "6.0.0";
    
        }
    
        revision "2020-07-01" {
          description
            "- Updated site-tag description";
          reference
            "5.0.1";
    
        }
    
        revision "2019-06-25" {
          description
            "- Deprecating filter priority, replacing filter priority with
             rule priority with range [0-1023].
           - Added semantic version.
           - Fix constraint for tag source priority.";
          reference
            "5.0.0";
    
        }
    
        revision "2018-10-29" {
          description
            "- Removing default empty strings from filter-name and tag-info
           - Cleaned up spelling errors in descriptions.";
          reference
            "4.0.0";
    
        }
    
        revision "2018-05-10" {
          description
            "- Added new range constraints in grouping st-tag-source-priority-config
           - Added new length constraints in grouping st-tag-list-config
           - Added location-entries";
          reference
            "3.0.0";
    
        }
    
        revision "2018-03-08" {
          description
            "Add AP filter priority list";
          reference
            "2.1.0";
    
        }
    
        revision "2018-01-24" {
          description
            "The first generally available version";
          reference
            "2.0.0";
    
        }
    
        revision "2017-05-05" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "6.0.0";
        cisco-semver:module-version "5.0.1";
        cisco-semver:module-version "5.0.0";
        cisco-semver:module-version "4.0.0";
        cisco-semver:module-version "3.0.0";
        cisco-semver:module-version "2.1.0";
        cisco-semver:module-version "2.0.0";
        cisco-semver:module-version "1.0.0";
    
        grouping ap-tag {
          description "Configuration of ap tag";
          leaf ap-mac {
            type yang:mac-address;
            description
              "mac address of Access point";
          }
    
          leaf policy-tag {
            type string;
            default "default-policy-tag";
            description
              "Configuration of policy tag";
          }
    
          leaf site-tag {
            type string;
            default "default-site-tag";
            description
              "Site Tag configuration for an AP.
             APs with same named Site Tag form a site.
             Cisco recommendations for number of APs in a site vary by platform and deployment model.
             Please follow these recommendation for your platform and deployment model";
          }
    
          leaf rf-tag {
            type string;
            default "default-rf-tag";
            description
              "Configuration of rf tag";
          }
        }  // grouping ap-tag
    
        grouping st-tag-source-priority-config {
          description "Priority for tag source";
          leaf priority {
            type uint8 {
              range "0 .. 4";
            }
            description
              "Priority for tag source";
          }
    
          leaf tag-src {
            type wireless-ap-types:enm-ap-tag-source;
            must
              "(../tag-src != 'tag-source-static' and ../tag-src != 'tag-source-default') or
                (../tag-src = 'tag-source-static' and ../priority = 0) or
                (../tag-src = 'tag-source-default' and ../priority = 4)" {
              error-message
                "Static and Default tag sources must have priorities 0 and 4 respectively";
              error-app-tag "must-violation";
            }
            description "tag source";
          }
        }  // grouping st-tag-source-priority-config
    
        grouping st-tag-list-config {
          description "ap tag list";
          leaf policy-tag {
            type string {
              length "0..32";
            }
            description "policy tag";
          }
    
          leaf site-tag {
            type string {
              length "0..32";
            }
            description "site tag";
          }
    
          leaf rf-tag {
            type string {
              length "0..32";
            }
            description "rf tag";
          }
        }  // grouping st-tag-list-config
    
        grouping ap-filter-priority-config {
          description "Priority for AP filter";
          leaf priority {
            type uint8 {
              range "0 .. 127";
            }
            description "Priority of filter";
          }
    
          leaf filter-name {
            type string;
            description "Name of the filter.";
          }
        }  // grouping ap-filter-priority-config
    
        grouping st-ap-rule-priority-config {
          description
            "Priority for AP filter rule";
          leaf priority {
            type uint32;
            must '(../priority < 1024)' {
              error-message
                "Priority of AP filter rule must be in range of 0..1023";
              error-app-tag "must-violation";
            }
            description
              "Priority of filter rule";
          }
    
          leaf filter-name {
            type string;
            description
              "Name of the filter rule";
          }
        }  // grouping st-ap-rule-priority-config
    
        grouping st-ap-filter-config {
          description "ap filter structure";
          leaf filter-name {
            type string;
            description "filter name";
          }
    
          leaf filter-string {
            type string;
            description
              "regular expression string";
          }
    
          leaf filter-priority {
            type uint8;
            description "filter priority";
          }
    
          container apply-tag-list {
            description "applying tag list";
            uses wireless-ap-cfg:st-tag-list-config;
          }  // container apply-tag-list
        }  // grouping st-ap-filter-config
    
        grouping associated-aps {
          description
            "Structure have location configuration information.";
          leaf ap-mac {
            type yang:mac-address;
            description "AP MAC address.";
          }
        }  // grouping associated-aps
    
        grouping st-location-tags {
          description
            "AP location's tag information";
          leaf policy-tag {
            type string {
              length "0..32";
            }
            default "default-policy-tag";
            description
              "Policy tag for AP location";
          }
    
          leaf site-tag {
            type string {
              length "0..32";
            }
            default "default-site-tag";
            description
              "Site tag for AP location";
          }
    
          leaf rf-tag {
            type string {
              length "0..32";
            }
            default "default-rf-tag";
            description "RF tag for AP location";
          }
        }  // grouping st-location-tags
    
        grouping location-config {
          description
            "Structure having location configuration information for AP";
          leaf location-name {
            type string {
              length "1..32";
              pattern '[!-~]([ -~]*[!-~])?';
            }
            description
              "Name of the AP location";
          }
    
          leaf description {
            type string {
              length "1..32";
            }
            description
              "Description for location of AP";
          }
    
          container tag-info {
            description
              "Tag information for AP location";
            uses wireless-ap-cfg:st-location-tags;
          }  // container tag-info
    
          container associated-aps {
            description
              "Container of associated APs";
            list associated-ap {
              key "ap-mac";
              description
                "Associated AP information";
              uses wireless-ap-cfg:associated-aps;
            }  // list associated-ap
          }  // container associated-aps
        }  // grouping location-config
    
        container ap-cfg-data {
          description "AP tag configuration";
          container location-entries {
            description
              "Structure has location configuration information.";
            list location-entry {
              key "location-name";
              description
                "Structure has location configuration information.";
              uses wireless-ap-cfg:location-config;
            }  // list location-entry
          }  // container location-entries
    
          container tag-source-priority-configs {
            description
              "Priority for tag source";
            list tag-source-priority-config {
              key "priority";
              description
                "Priority for tag source";
              uses wireless-ap-cfg:st-tag-source-priority-config;
            }  // list tag-source-priority-config
          }  // container tag-source-priority-configs
    
          container ap-filter-configs {
            description "ap filter";
            list ap-filter-config {
              key "filter-name";
              description "ap filter";
              uses wireless-ap-cfg:st-ap-filter-config;
            }  // list ap-filter-config
          }  // container ap-filter-configs
    
          container ap-filter-priority-cfg-entries {
            status obsolete;
            description "Priority for AP filter";
            list ap-filter-priority-cfg-entry {
              key "priority";
              description
                "Priority for AP filter";
              uses wireless-ap-cfg:ap-filter-priority-config;
            }  // list ap-filter-priority-cfg-entry
          }  // container ap-filter-priority-cfg-entries
    
          container ap-rule-priority-cfg-entries {
            description
              "Priority for AP filter rule";
            list ap-rule-priority-cfg-entry {
              key "priority";
              description
                "Priority for AP filter rule";
              uses wireless-ap-cfg:st-ap-rule-priority-config;
            }  // list ap-rule-priority-cfg-entry
          }  // container ap-rule-priority-cfg-entries
    
          container ap-tags {
            description
              "Configuration of AP tags";
            list ap-tag {
              key "ap-mac";
              description "List of AP tags";
              uses wireless-ap-cfg:ap-tag;
            }  // list ap-tag
          }  // container ap-tags
        }  // container ap-cfg-data
      }  // module Cisco-IOS-XE-wireless-ap-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.