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 internal {
                        description "Use the internal signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum diameter {
                        description "Use the Diameter signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum ss7 {
                        description "Use the SS7 signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum sip {
                        description "Use the SIP signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum http-call-control {
                        description "Use the HTTP call control 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.";
                    }
                    enum custom-signaling {
                        description "Applies to custom VMs only.
                                     Use the first signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum custom-signaling2 {
                        description "Applies to custom VMs only.
                                     Use the second signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum diameter-multihoming {
                        description "Use the second Diameter signaling interface
                                     to connect to the specified endpoint.";
                    }
                    enum ss7-multihoming {
                        description "Use the second SS7 signaling 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";
    }
}
Previous page Next page
Rhino VoLTE TAS VMs Version 4.0.0