module ietf-network-bridge {
namespace "urn:ietf:params:xml:ns:yang:ietf-network-bridge";
prefix netbr;
import ietf-interfaces {
prefix if;
}
organization
"IETF NETMOD (NETCONF Data Modeling Language) Working Group";
contact
"WG Web:
WG List:
Editor: Vladimir Vassilev
";
description
"This module contains a collection of YANG definitions for
description and management of network bridges.
Copyright (c) 2015 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";
revision 2018-07-15 {
description
"Initial revision.";
reference "RFC XXXX: Network Bridge";
}
container bridge {
container ports {
list port {
key "name";
unique "index";
leaf name {
type string;
}
leaf index {
type uint64;
}
}
}
}
augment "/if:interfaces/if:interface" {
leaf port-name {
type leafref {
path "/netbr:bridge/netbr:ports/netbr:port/netbr:name";
}
}
}
typedef port-ref {
type leafref {
path "/if:interfaces/if:interface/netbr:port-name";
}
description
"This type is used by data models that need to reference
configured bridge ports.";
}
}