3 namespace "http://frrouting.org/yang/interface";
10 import ietf-interfaces {
14 import ietf-yang-types {
21 "FRR Users List: <mailto:frog@lists.frrouting.org>
22 FRR Development List: <mailto:dev@lists.frrouting.org>";
24 "This module defines a model for managing FRR interfaces.
26 Copyright 2020 FRRouting
28 Redistribution and use in source and binary forms, with or without
29 modification, are permitted provided that the following conditions
32 1. Redistributions of source code must retain the above copyright notice,
33 this list of conditions and the following disclaimer.
35 2. Redistributions in binary form must reproduce the above copyright
36 notice, this list of conditions and the following disclaimer in the
37 documentation and/or other materials provided with the distribution.
39 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
40 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
41 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
42 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
43 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
45 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
46 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
47 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
48 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
49 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
53 "Added operational data";
57 "Added interface-ref typedef";
65 base ietf-if:interface-type;
71 base ietf-if:interface-type;
77 base ietf-if:interface-type;
82 identity exper-ethernet {
83 base ietf-if:interface-type;
85 "Experimental Ethernet type";
89 base ietf-if:interface-type;
95 base ietf-if:interface-type;
97 "PIMSM Registration.";
101 base ietf-if:interface-type;
107 base ietf-if:interface-type;
113 base ietf-if:interface-type;
118 typedef interface-ref {
120 path "/frr-interface:lib/frr-interface:interface/frr-interface:name";
121 require-instance false;
124 "Reference to an interface";
127 typedef if-flags-type {
132 "Active and ready to transfer packets.";
137 "Broadcast enabled.";
147 "Loopback interface.";
149 enum "point-to-point" {
152 "Point-to-Point link.";
157 "This flag is unused in Linux, but it exists for BSD compatibility.
158 Avoid use of trailers";
168 "Can't perform address resolution protocol.";
173 "Promiscuous mode. Receive all packets.";
178 "Receive all multicast packets.";
183 "Does not Rx or Tx at the sametime.";
203 "Supports multicast transmission.";
208 "Interface is no transmit mode.";
213 "No routing info exchange.";
218 "Virtual interface.";
233 grouping if-common-operational {
236 range "0..2147483647";
245 "The size of the largest IPV4 packet that the interface
246 will send and receive.";
252 "The size of the largest IPV6 packet that the interface
253 will send and receive.";
276 base ietf-if:interface-type;
279 "The link type of the interface.";
283 type yang:mac-address;
285 "The interface's MAC address.";
303 type frr-vrf:vrf-ref;
305 "VRF this interface is associated with.";
311 "Interface description.";
316 uses if-common-operational;