Skip to content

Commit

Permalink
yang: introduce gs-routing model
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuyaAnazawa committed Dec 27, 2022
1 parent de6ce8a commit 3398d06
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions yang/goldstone-routing.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
module goldstone-routing {

yang-version "1";

namespace "http://goldstone.net/yang/goldstone-routing";
prefix gs-routing;

organization
"GoldStone";

contact
"Goldstone";

description
"Goldstone Routing";

revision 2022-12-14 {
description
"Initial revision.";
}

typedef control-plane-protocol {
type enumeration {
enum STATIC;
}
}

typedef administrative-distance {
type uint8 {
range "1..255";
}
description
"Admin distance associated with the route.";
}

grouping routing-config {
description
"Configuration data nodes common to the routing
subsystems";

leaf type {
type control-plane-protocol;
description
"Type of the control-plane protocol";
}

leaf name {
type string;
description
"An arbitrary name of the control-plane protocol
instance.";
}
}

grouping routing-state {
}

container routing {
description
"Configuration parameters for the routing subsystem.";

container config {
uses routing-config;
}
container state {
config false;
uses routing-config;
uses routing-state;
}
}
}

0 comments on commit 3398d06

Please sign in to comment.