// vi: set smarttab et sw=4 tabstop=4: module odl-pcep-segment-routing-cfg { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:sr:cfg"; prefix "pcep-sr"; import config { prefix config; revision-date 2013-04-05; } import odl-pcep-api-cfg { prefix pcep; revision-date 2013-04-09; } import odl-pcep-spi-cfg { prefix spi; revision-date 2013-11-15; } organization "Cisco Systems, Inc."; contact "Milos Fabian "; description "This module contains the data model of PCEP Extensions for Segment Routing, draft-ietf-pce-segment-routing-00. Copyright (c)2014 Cisco Systems, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html"; revision "2014-06-09" { description "Initial revision."; } identity pcep-parser-segment-routing { base config:module-type; config:provided-service spi:extension; config:java-name-prefix SegmentRoutingPCEPParser; } augment "/config:modules/config:module/config:configuration" { case pcep-parser-segment-routing { when "/config:modules/config:module/config:type = 'pcep-parser-segment-routing'"; } } identity pcep-session-proposal-factory-sr { base config:module-type; config:java-name-prefix "SrPCEPSessionProposalFactory"; config:provided-service pcep:pcep-session-proposal-factory; } augment "/config:modules/config:module/config:configuration" { case pcep-session-proposal-factory-sr { when "/config:modules/config:module/config:type = 'pcep-session-proposal-factory-sr'"; leaf dead-timer-value { type uint8; default 120; } leaf keep-alive-timer-value { type uint8; default 30; } leaf initiated { type boolean; default true; } leaf stateful { type boolean; default true; } leaf active { type boolean; default true; } leaf sr-capable { type boolean; default true; } } } }