blob: cf933db0cbaa77ffa3be6963983af9c3fbf495fa [file] [log] [blame]
Thomas Vachuska6655bee2017-08-24 16:12:59 -07001submodule openconfig-aft-ethernet {
2 belongs-to "openconfig-aft" {
3 prefix "oc-aft";
4 }
5
6 import openconfig-extensions { prefix "oc-ext"; }
7 import openconfig-yang-types { prefix "oc-yang"; }
8
9 // Include common cross-AFT groupings from the common submodule.
10 include openconfig-aft-common;
11
12 oc-ext:openconfig-version "0.3.0";
13
14 organization
15 "OpenConfig working group";
16
17 contact
18 "OpenConfig working group
19 www.openconfig.net";
20
21 description
22 "Submodule containing definitions of groupings for the abstract
23 forwarding tables for Ethernet.";
24
25 revision 2017-05-10 {
26 description
27 "Refactor to provide concretised per-AF schemas per AFT.";
28 reference "0.3.0";
29 }
30
31 grouping aft-ethernet-structural {
32 description
33 "Structural grouping defining the schema for the Ethernet
34 abstract forwarding table.";
35
36 list mac-entry {
37 key "mac-address";
38
39 description
40 "List of the Ethernet entries within the abstract
41 forwarding table. This list is keyed by the outer MAC address
42 of the Ethernet frame.";
43
44 leaf mac-address {
45 type leafref {
46 path "../config/mac-address";
47 }
48 description
49 "Reference to the outer MAC address matched by the
50 entry.";
51 }
52
53 container config {
54 description
55 "Configuration parameters for the Ethernet AFT entry.";
56 uses aft-ethernet-entry-config;
57 }
58
59 container state {
60 config false;
61 description
62 "Operational state parameters for the Ethernet AFT
63 entry.";
64 uses aft-ethernet-entry-config;
65 uses aft-ethernet-entry-state;
66 }
67
68 uses aft-common-nhop-structural;
69 }
70 }
71
72 grouping aft-ethernet-entry-config {
73 description
74 "Configuration parameters for the Ethernet AFT entry.";
75
76 leaf mac-address {
77 type oc-yang:mac-address;
78 description
79 "The outer MAC address of the Ethernet frame that must
80 be matched for the AFT entry to be utilised.";
81 }
82 }
83
84 grouping aft-ethernet-entry-state {
85 description
86 "Operational state parameters for the Ethernet AFT entry.";
87 uses aft-common-entry-state;
88 }
89}