mirror of
https://github.com/FRRouting/frr.git
synced 2026-01-16 23:14:01 +00:00
yang: add the start of host YANG model
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
ce8bfbfb61
commit
8a3965ef19
2 changed files with 63 additions and 0 deletions
62
yang/frr-host.yang
Normal file
62
yang/frr-host.yang
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
module frr-host {
|
||||
yang-version 1.1;
|
||||
namespace "http://frrouting.org/yang/host";
|
||||
prefix frr-host;
|
||||
|
||||
organization
|
||||
"FRRouting";
|
||||
contact
|
||||
"FRR Users List: <mailto:frog@lists.frrouting.org>
|
||||
FRR Development List: <mailto:dev@lists.frrouting.org>";
|
||||
description
|
||||
"This module defines a model for FRR backend management.
|
||||
|
||||
Copyright (c) 2024, LabN Consulting, L.L.C.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
|
||||
|
||||
revision 2025-06-12 {
|
||||
description "Initial revision";
|
||||
reference "FRR source code";
|
||||
}
|
||||
|
||||
container host {
|
||||
description "Host configuration";
|
||||
|
||||
leaf allow-reserved-ranges {
|
||||
type boolean;
|
||||
default "false";
|
||||
description
|
||||
"Allow using reserved ranges (e.g. 127.0.0.0/8, 0.0.0.0/8, 240.0.0.0/4).
|
||||
|
||||
For example, this is necessary in case of multiple FRR instances (or
|
||||
FRR + any other daemon) peering via loopback interfaces running on the
|
||||
same router.
|
||||
|
||||
Another example is when you need to annouce a reserved range via RIP
|
||||
protocol.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ EXTRA_DIST += yang/embedmodel.py
|
|||
dist_yangmodels_DATA += yang/frr-affinity-map.yang
|
||||
dist_yangmodels_DATA += yang/frr-backend.yang
|
||||
dist_yangmodels_DATA += yang/frr-filter.yang
|
||||
dist_yangmodels_DATA += yang/frr-host.yang
|
||||
dist_yangmodels_DATA += yang/frr-module-translator.yang
|
||||
dist_yangmodels_DATA += yang/frr-nexthop.yang
|
||||
dist_yangmodels_DATA += yang/frr-test-module.yang
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue