ietf-dhcpv4-types.yang 1.29 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module ietf-dhcpv4-types {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv4-types";
  prefix "dhcpv4-types";

  import ietf-inet-types {
    prefix inet;
  }
  import ietf-yang-types {
    prefix yang;
  }

  organization "DHC WG";
  contact
Piotr Strzy¿ewski's avatar
Piotr Strzy¿ewski committed
15
    "piotr.strzyzewski@polsl.pl";
16
17
18
19
20
  description "This model defines a YANG data model that can be
    used to define some commonly used DHCPv4 types";

  revision 2018-07-14 {
    description "Initial revision";
Piotr Strzy¿ewski's avatar
Piotr Strzy¿ewski committed
21
    reference "";
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  }

  /*
  * Grouping
  */
  grouping vendor-infor {
    description "Vendor information.";
    container vendor-info {
      description "";
      leaf ent-num {
        type uint32;
        description "enterprise number";
      }
      leaf-list data {
        type string;
        description "specific vendor info";
      }
    }
  }

  grouping portset-para {
    description "portset parameters";
    container port-parameter {
      description "port parameter";
      leaf offset {
        type uint8;
        mandatory true;
        description "offset in a port set";
      }
      leaf psid-len {
        type uint8;
        mandatory true;
        description "length of a psid";
      }
      leaf psid {
        type uint16;
        mandatory true;
        description "psid value";
      }
    }
  }

}