ntp

This module contains a collection of YANG definitions for Cisco IOS-XR syadmin NTP configuration. This module contains definiti...

  • Version: 2016-07-04

    ntp@2016-07-04


    
      module ntp {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/calvados/ntp";
    
        prefix ntp;
    
        import tailf-common {
          prefix tailf;
        }
        import ietf-yang-types {
          prefix yang;
        }
        import Cisco-IOS-XR-sysadmin-show-trace {
          prefix show_trace;
        }
    
        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 syadmin NTP configuration.
    
         This module contains definitions
         for the following management objects:
         NTP configuration data
    
         Copyright (c) 2013-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2016-07-04" {
          description "Remove refine stmt";
        }
    
        revision "2016-05-12" {
          description "Initial version";
        }
    
    
        container ntp {
          list peer {
            key "name";
            leaf name {
              type string;
            }
    
            leaf version {
              type int32 {
                range "1 .. 4";
              }
            }
    
            leaf key-id {
              type int32 {
                range "1 .. 65534";
              }
            }
    
            leaf prefer {
              type empty;
            }
          }  // list peer
    
          list server {
            key "name";
            leaf name {
              type string;
            }
    
            leaf version {
              type int32 {
                range "1 .. 4";
              }
            }
    
            leaf key-id {
              type int32 {
                range "1 .. 65534";
              }
            }
    
            leaf prefer {
              type empty;
            }
          }  // list server
    
          leaf-list trusted-key {
            type int32 {
              range "1 .. 65534";
            }
          }
    
          leaf authenticate {
            type empty;
          }
    
          list authentication-key {
            key "key-number";
            leaf key-number {
              type int32 {
                range "1 .. 65534";
              }
            }
    
            leaf md5-keyword {
              type enumeration {
                enum "md5" {
                  value 0;
                }
              }
              mandatory true;
            }
    
            leaf encryption {
              type enumeration {
                enum "clear" {
                  value 0;
                }
                enum "encrypted" {
                  value 1;
                }
              }
            }
    
            leaf keyname {
              type string {
                length "min .. 32";
              }
              mandatory true;
            }
          }  // list authentication-key
    
          container trace {
            config false;
            container ntp_helper {
              list trace {
                key "buffer";
                config false;
                description
                  "show traceable processes";
                leaf buffer {
                  type string;
                }
    
                list location {
                  key "location_name";
                  leaf location_name {
                    type string;
                  }
    
                  list all-options {
                    key "option";
                    leaf option {
                      type string;
                    }
    
                    list trace-blocks {
                      leaf data {
                        type string;
                        description
                          "Trace output block";
                      }
                    }  // list trace-blocks
                  }  // list all-options
                }  // list location
              }  // list trace
            }  // container ntp_helper
          }  // container trace
        }  // container ntp
    
        container clock-action {
          config false;
          container clock {
            container Action {
              tailf:action "update-calendar" {
                output {
                  leaf "status" {
                    type "string";
                    mandatory "false";
                  }
                }
              }
              tailf:action "read-calendar" {
                output {
                  leaf "status" {
                    type "string";
                    mandatory "false";
                  }
                }
              }
              tailf:action "set" {
                input {
                  leaf "time" {
                    type "yang:date-and-time";
                    mandatory "true";
                  }
                }
                output {
                  leaf "status" {
                    type "string";
                    mandatory "false";
                  }
                }
              }
            }  // container Action
          }  // container clock
        }  // container clock-action
      }  // module ntp
    

© 2023 YumaWorks, Inc. All rights reserved.