junos-es-conf-smtp

Junos smtp configuration module

  • Version: 2019-01-01

    junos-es-conf-smtp@2019-01-01


    
      module junos-es-conf-smtp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-es/conf/smtp";
    
        prefix jc-smtp;
    
        import junos-common-ddl-extensions {
          prefix junos;
          revision-date "2019-01-01";
        }
        import junos-common-types {
          prefix jt;
          revision-date "2019-01-01";
        }
        import junos-es-conf-root {
          prefix jc;
          revision-date "2019-01-01";
        }
    
        organization "Juniper Networks, Inc.";
    
        contact "yang-support@juniper.net";
    
        description
          "Junos smtp configuration module";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        augment /jc:configuration {
          uses smtp-group;
        }
    
        augment /jc:configuration/jc:groups {
          uses smtp-group;
        }
    
        grouping smtp-group {
          container smtp {
            description
              "Simple Mail Transfer Protocol service configuration";
            uses apply-advanced;
    
            container primary-server {
              description
                "SMTP primary server configuration";
              uses apply-advanced;
    
              leaf address {
                type jt:ipv4addr;
                description
                  "SMTP server's IPv4 address";
              }
    
              choice authentication {
                list login {
                  key "name";
                  ordered-by user;
                  description
                    "Configure a mail sender account to the server";
                  uses login-object;
                }  // list login
              }  // choice authentication
            }  // container primary-server
    
            container secondary-server {
              description
                "SMTP secondary server configuration";
              uses apply-advanced;
    
              leaf address {
                type jt:ipv4addr;
                description
                  "SMTP server's IPv4 address";
              }
    
              choice authentication {
                list login {
                  key "name";
                  ordered-by user;
                  description
                    "Configure a mail sender account to the server";
                  uses login-object;
                }  // list login
              }  // choice authentication
            }  // container secondary-server
    
            container traceoptions {
              description
                "Trace options for SMTP client service";
              uses apply-advanced;
    
              list flag {
                key "name";
                ordered-by user;
                description "Tracing parameters";
                leaf name {
                  type enumeration {
                    enum "IPC" {
                      value 0;
                      description
                        "Trace inter-processs communication";
                    }
                    enum "protocol-exchange" {
                      value 1;
                      description
                        "Trace SMTP protocol exchanges";
                    }
                    enum "configuration" {
                      value 2;
                      description
                        "Trace configuration event";
                    }
                    enum "send-request" {
                      value 3;
                      description
                        "Trace send mail request event";
                    }
                    enum "all" {
                      value 4;
                      description
                        "Trace everything";
                    }
                  }
                }
              }  // list flag
            }  // container traceoptions
          }  // container smtp
        }  // grouping smtp-group
    
        grouping apply-advanced {
          description
            "Apply advanced configuration logic";
          leaf-list apply-groups {
            type string;
            ordered-by user;
            description
              "Groups from which to inherit configuration data";
          }
    
          leaf-list apply-groups-except {
            type string;
            ordered-by user;
            description
              "Don't inherit configuration data from these groups";
          }
    
          list apply-macro {
            key "name";
            ordered-by user;
            description
              "Macro and parameters for commit script expansion";
            uses apply-macro-type;
          }  // list apply-macro
        }  // grouping apply-advanced
    
        grouping apply-macro-type {
          description
            "Macro data for commit-script expansion";
          leaf name {
            type string;
            description
              "Name of the macro to be expanded";
          }
    
          list data {
            key "name";
            uses macro-data-type;
          }  // list data
        }  // grouping apply-macro-type
    
        grouping login-object {
          description "Mail login parameters";
          leaf name {
            type string {
              junos:posix-pattern "^[A-Za-z.0-9_@-]{1,40}$";
              junos:pattern-message "Must be in the form user@foo.com consisting up to 40 letters, numbers, periods underscores and dashes";
            }
            description
              "Default sender email address in user@foo.com format";
          }
    
          uses apply-advanced;
    
          leaf password {
            type jt:unreadable;
            description
              "Default sender password for user authentication";
          }
        }  // grouping login-object
    
        grouping macro-data-type {
          leaf name {
            type string;
            description
              "Keyword part of the keyword-value pair";
          }
    
          leaf value {
            type string;
            description
              "Value part of the keyword-value pair";
          }
        }  // grouping macro-data-type
      }  // module junos-es-conf-smtp
    

© 2023 YumaWorks, Inc. All rights reserved.