On this page...
YANG schema
module routing-configuration {
yang-version 1.1;
namespace "http://metaswitch.com/yang/tas-vm-build/routing-configuration";
prefix "routing";
import ietf-inet-types {
prefix "ietf-inet";
}
organization "Metaswitch Networks";
contact "rvt-schemas@metaswitch.com";
description "Routing configuration schema.";
revision 2019-11-29 {
description
"Initial revision";
reference
"Metaswitch Deployment Definition Guide";
}
grouping routing-configuration-grouping {
list routing-rules {
key "name";
unique "target";
leaf name {
type string;
mandatory true;
description "The name of the routing rule.";
}
leaf target {
type union {
type ietf-inet:ip-address;
type ietf-inet:ip-prefix;
}
mandatory true;
description "The target for the routing rule."
+ " Can be either an IP address or a block of IP addresses.";
}
leaf interface {
type enumeration {
enum management {
description "Use the management interface"
+ " to connect to the specified endpoint.";
}
enum signaling {
description "Use the signaling interface"
+ " to connect to the specified endpoint.";
}
enum cluster {
description "Use the cluster interface"
+ " to connect to the specified endpoint.";
}
enum access {
description "Use the access interface"
+ " to connect to the specified endpoint.";
}
}
mandatory true;
description "The name of the interface to use to connect to the endpoint.";
}
leaf gateway {
type ietf-inet:ip-address;
mandatory true;
description "The IP address of the gateway to route through.";
}
description "The list of routing rules.";
}
description "Routing configuration";
}
}