Bras-http-redirect.
Version: 2020-02-22
module huawei-bras-http-redirect { yang-version 1; namespace "urn:huawei:yang:huawei-bras-http-redirect"; prefix bras-http-redirect; import huawei-aaa { prefix aaa; } import huawei-bras-basic-access { prefix bras-basic-access; } import huawei-qos { prefix qos; } import huawei-bras-vas { prefix bras-vas; } import huawei-extension { prefix ext; } import huawei-pub-type { prefix pub-type; } import ietf-inet-types { prefix inet; } import huawei-bras-web-authen { prefix bras-web-authen; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Bras-http-redirect."; revision "2020-02-22" { description "Description modification."; reference "Huawei private."; } revision "2019-04-16" { description "Initial revision."; reference "Huawei private."; } ext:task-name "bras-control"; container bras-http-redirect { description "Bras http redirect."; container web-url-profiles { description "List of redirect templates."; list web-url-profile { key "name"; description "Configure a redirect template."; leaf name { ext:case-sensitivity "lower-only"; type string { length "1..64"; pattern "[a-z0-9._-]{1,64}"; } must "../name != '-' and ../name != '--'"; description "Specifies the name of the redirect template."; } container url { description "Configure a redirect URL in a redirect template. By default, no redirect URL is configured in the redirect template scenario."; leaf content { type string { length "1..200"; } description "Specifies the redirect URL, either in a domain name or an IP address, such as 10.0.0.1, http://10.0.0.1, www.huawei.com or http://www.huawei.com."; } } // container url } // list web-url-profile } // container web-url-profiles container url-or-dnss { description "List of blacklists of URLs for which web authentication or portal redirection will be performed forcibly or configures a whitelist for users who access web services using HTTPS."; list url-or-dns { key "url-string deny-or-permit"; description "Configure a blacklist of URLs for which web authentication or portal redirection will be performed forcibly or configures a whitelist for users who access web services using HTTPS."; leaf url-string { type string { length "1..200"; } description "Specifies an address of a web page."; } leaf deny-or-permit { type boolean; description "Enable/disable a whitelist for users who access web services using HTTPS or a blacklist of URLs for which web authentication or portal redirection will be performed forcibly."; } container url-deny-counts { config false; description "List of statistics for times that an HTTP blacklist is hit."; list url-deny-count { key "slot-id"; description "Display the statistics for times that an HTTP blacklist is hit."; leaf slot-id { type string { length "1..15"; } description "Display the slot ID."; } leaf deny-count { type uint32; description "Number of times that an HTTP blacklist is hit."; } } // list url-deny-count } // container url-deny-counts } // list url-or-dns } // container url-or-dnss container http-redirect-profiles { description "List of redirection templates."; list http-redirect-profile { key "name"; max-elements 255; description "Configure the redirection template."; leaf name { ext:case-sensitivity "lower-only"; type string { length "1..31"; pattern "[a-z0-9._-]{1,31}"; } must "../name != '-' and ../name != '--'"; description "The redirection template name."; } leaf work-mode { type enumeration { enum "get" { value 1; description "Indicates that the working mode is get."; } enum "post" { value 2; description "Indicates that the working mode is post."; } } default "get"; description "Indicates that the working mode."; } leaf url { type string { length "1..200"; } description "Specifies the URL address."; } leaf push-times { type uint8 { range "1..5"; } default "2"; description "Sets number of times to push advertisements."; } } // list http-redirect-profile } // container http-redirect-profiles container portal-age-time { description "Configure the captive portal timeout period."; leaf value { type uint32 { range "1..900"; } description "Configure captive portal timeout period (configuration in the domain has high priority) in second."; } } // container portal-age-time } // container bras-http-redirect } // module huawei-bras-http-redirect
© 2023 YumaWorks, Inc. All rights reserved.