summaryrefslogtreecommitdiffstats
path: root/tests/yanglint/modules/modoper-leafref.yang
blob: 36a11246ffddb4171dd5aad7249825a8d497facd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
65
66
67
68
module modoper-leafref {
  yang-version 1.1;
  namespace "urn:yanglint:modoper-leafref";
  prefix mol;

  import modconfig {
    prefix mc;
  }

  container cond {
    list list {
      key "klf";
      leaf klf {
        type string;
      }
      action act {
        input {
          leaf lfi {
            type leafref {
              path "/mc:mcc/mc:lft";
            }
          }
        }
        output {
          leaf lfo {
            type leafref {
              path "/mc:mcc/mc:lft";
            }
          }
        }
      }
      notification notif {
        leaf lfn {
          type leafref {
            path "/mc:mcc/mc:lft";
          }
        }
      }
    }
  }

  rpc rpcg {
    input {
      leaf lfi {
        type leafref {
          path "/mc:mcc/mc:lft";
        }
      }
    }
    output {
      container cono {
        leaf lfo {
          type leafref {
            path "/mc:mcc/mc:lft";
          }
        }
      }
    }
  }

  notification notifg {
    leaf lfr {
      type leafref {
        path "/mc:mcc/mc:lft";
      }
    }
  }
}