-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
KazuyaAnazawa
committed
Dec 27, 2022
1 parent
de6ce8a
commit 3398d06
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |