Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: vrf northbound callbacks #5987

Closed
wants to merge 30 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0693b0d
yang: add vrf model
chiragshah6 Dec 6, 2019
e095f16
*: add frr-vrf yang module in makefile
chiragshah6 Dec 9, 2019
7d75ef8
Merge pull request #5501 from chiragshah6/yang_nb1
riw777 Dec 17, 2019
cf93250
yang: add vrf model
chiragshah6 Dec 6, 2019
245daf0
*: add frr-vrf yang module in makefile
chiragshah6 Dec 9, 2019
2d2d0ee
Merge branch 'nb_conversions' of https://github.com/FRRouting/frr int…
Feb 4, 2020
87ee53f
yang: add vrf ref to interface model
chiragshah6 Feb 3, 2020
5dd164b
Merge pull request #5751 from chiragshah6/yang_nb1
rwestphal Feb 5, 2020
95f1804
staticd: yang defination
vishaldhingra Dec 3, 2019
f5319ff
lib: yang defination for basic frr-routing
vishaldhingra Dec 11, 2019
a530bfe
lib: FRR next-hop yang data model.
Dec 20, 2019
db727fe
Merge pull request #5578 from Spantik/working_nb
qlyoung Feb 12, 2020
2a9ca11
Merge pull request #5460 from vishaldhingra/static_nb
qlyoung Feb 14, 2020
aa9935c
Merge pull request #5530 from vishaldhingra/common_nb
qlyoung Feb 14, 2020
6514ce8
yang: add vrf model
chiragshah6 Dec 6, 2019
5b15a51
*: add frr-vrf yang module in makefile
Feb 20, 2020
ee8ac97
yang: add vrf ref to interface model
chiragshah6 Feb 3, 2020
97928ec
lib: FRR next-hop yang data model.
Dec 20, 2019
8f8cac6
staticd: yang defination
vishaldhingra Dec 3, 2019
2aa6fcc
lib: yang defination for basic frr-routing
vishaldhingra Dec 11, 2019
3e31357
Merge branch 'nb_conversions' of https://github.com/FRRouting/frr int…
Feb 20, 2020
c590694
yang: add vrf model
chiragshah6 Dec 6, 2019
2884b53
*: add frr-vrf yang module in makefile
Feb 20, 2020
745d694
yang: add vrf ref to interface model
chiragshah6 Feb 3, 2020
1dc094d
lib: FRR next-hop yang data model.
Dec 20, 2019
3cd3efe
staticd: yang defination
vishaldhingra Dec 3, 2019
30144e1
lib: yang defination for basic frr-routing
vishaldhingra Dec 11, 2019
84b5d31
Merge branch 'nb_conversions' of https://github.com/FRRouting/frr int…
Mar 10, 2020
096409c
*: include vrf northbound module in init
chiragshah6 Mar 11, 2020
4495296
lib: vrf northbound callbacks
chiragshah6 Mar 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yang: add vrf model
module: frr-vrf
  +--rw lib
     +--rw vrf* [name]
        +--rw name      string
        +--ro id?       uint32
        +--ro active?   boolean <false>
        +--rw netns {netns}?
           +--rw name?   string

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
  • Loading branch information
chiragshah6 authored and Santosh P K committed Feb 4, 2020
commit cf9325048f5860534d6939481be0edee0b36ef75
75 changes: 75 additions & 0 deletions yang/frr-vrf.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
module frr-vrf {
yang-version 1.1;
namespace "http://frrouting.org/yang/vrf";
prefix frr-vrf;

organization
"Free Range Routing";
contact
"FRR Users List: <mailto:frog@lists.frrouting.org>
FRR Development List: <mailto:dev@lists.frrouting.org>";
description
"This module defines a model for managing FRR VRF.";

revision 2019-12-06 {
description
"Initial revision.";
}

/*
* Network namespace feature
*/
feature netns {
description "Abstracts network namespace as VRF.";
}

container lib {
list vrf {
key "name";
description
"VRF.";
leaf name {
type string {
length "1..36";
}
description
"VRF name.";
}

leaf id {
type uint32 {
range "0..4294967295";
}
config false;
description
"VRF Id.";
}

leaf active {
type boolean;
default "false";
config false;
description
"VRF active in kernel.";
}

container netns {
if-feature "netns";
leaf name {
type string;
description
"Namespace name.";
}
}
}
}

typedef vrf-ref {
type leafref {
require-instance false;
path "/frr-vrf:lib/frr-vrf:vrf/frr-vrf:name";
}
description
"Reference to a VRF";
}
}