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";
    
        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.";
              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";
                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";
                }
              }  // container tag-info
    
              container associated-aps {
                description
                  "Container of associated APs";
                list associated-ap {
                  key "ap-mac";
                  description
                    "Associated AP information";
                  leaf ap-mac {
                    type yang:mac-address;
                    description
                      "AP MAC address.";
                  }
                }  // list associated-ap
              }  // container associated-aps
            }  // 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";
              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";
              }
            }  // 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";
              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";
                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";
                }
              }  // container apply-tag-list
            }  // 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";
              leaf priority {
                type uint8 {
                  range "0 .. 127";
                }
                description "Priority of filter";
              }
    
              leaf filter-name {
                type string;
                description
                  "Name of the filter.";
              }
            }  // 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";
              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";
              }
            }  // 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";
              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";
              }
            }  // list ap-tag
          }  // container ap-tags
        }  // container ap-cfg-data
      }  // module Cisco-IOS-XE-wireless-ap-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.