Virtual Router/ Firewall/ VPN

Reply
New Contributor
Posts: 3
Registered: ‎05-11-2016

In Vyatta router: Yang models used to expand capabilities/ capabilities packed as augments/extensions?

[ Edited ]

Hi,

 

I recently came across this approach (but am not clear) where Brocade Vyatta router uses Yang models for the router to extend or expand capabilites. The capabilities are packed as augments...

 

module vyatta-service-https {

               namespace "urn:vyatta.com:mgmt:vyatta-service-https";

               prefix service-https;

 

               import vyatta-types {

                              prefix types;

               }

               import vyatta-services {

                              prefix service;

               }

               import configd {

                              prefix configd;

               }

 

               organization "Brocade Communications Systems, Inc.";

               contact

                              "Brocade Communications Systems, Inc.

                              Postal: 130 Holger Way

                                       San Jose, CA 95134

                              E-mail: support@Brocade.com

                              Web: www.brocade.com";

 

               revision 2014-08-27 {

                              description "Initial revision.";

                              configd:migration 1;

               }

 

               augment /service:service {

                              container https {

                                             presence "true";

                                             configd: priority "913";

                                             configd:help "Enable/disable the Web server";

                                             configd:update "/opt/vyatta/share/tmplscripts/service/https/configd_update.sh";

                                             configd:end "/opt/vyatta/share/tmplscripts/service/https/configd_end.sh";

                                             configd:validate "/opt/vyatta/share/tmplscripts/service/https/configd_validate1.cli";

                                             leaf service-users {

                                                            type empty;

                                                            configd:help "Enable service-user webportal";

                                             }

                                             leaf http-redirect {

                                                            type enumeration {

                                                                           enum "enable" {

                                                                                          configd:help "Enable HTTP redirection";

                                                                           }

                                                                           enum "disable" {

                                                                                          configd:help "Disable HTTP redirection ";

                                                                           }

                                                            }

                                                            configd:help "Control HTTP redirection";

                                                            default "enable";

                                             }

                                             leaf-list listen-address {

                                                            type union {

                                                                           type types:ipv4-address;

                                                                           type types:ipv6-address;

                                                            }

                                                            ordered-by "user";

                                                            configd:help "Specify listen address";

                                             }

                              }

               }

}

 

Notice the configd mentioned above?

This configd.yang looks like this-

 

module configd {

        namespace "urn:vyatta.com:mgmt:configd";

        prefix configd;

 

        organization "Brocade Communications Systems, Inc.";

        contact

                "Brocade Communications Systems, Inc.

                 Postal: 130 Holger Way

                         San Jose, CA 95134

                 E-mail: support@Brocade.com

                 Web: www.brocade.com";

 

        revision 2014-12-17 {

                description "Add rpc-script extension";

        }

        revision 2014-10-28 {

                description "Update for 3.2.1R1";

        }

 

        revision 2014-05-30 {

                description "Initial revision.";

        }

 

        extension help {

                argument text;

        }

        extension comp_help {

                argument text;

        }

        extension pattern-help {

                argument text;

        }

 

        extension priority {

                argument priority;

        }

 

        extension allowed {

                argument executable;

        }

        extension begin {

                argument executable;

        }

        extension end {

                argument executable;

        }

        extension create {

                argument executable;

       }

        extension delete {

                argument executable;

        }

        extension update {

                argument executable;

        }

        extension subst {

                argument executable;

        }

        extension secret {

                argument bool;

        }

 

        extension validate {

                argument executable;

        }

        extension syntax {

                argument executable;

        }

 

        extension error-message {

                argument message;

        }

 

        extension migration {

                argument level;

        }

 

        extension rpc-script {

                argument executable;

        }

}

 

Can someone explain what this approach is and how it is different from traditional Yang Model/Netconf approach?

Frequent Contributor
Posts: 95
Registered: ‎03-23-2015

Re: In Vyatta router: Yang models used to expand capabilities/ capabilities packed as augments/extensions?

Hi @devp,

 

While we still encourage the community to assist with your post, I wanted to let you I have passed your questions on to our TAC Engagement team and they will be reaching out to you shortly to gather some more information regarding your configuration so we can get you in touch with the correct group . I encourage you to continue to post in the community and let me know if there is any way I can help. Once your post is resolved, we will make sure to post the resolution back to the community to help other members.


You can find out more about the TAC Engaged program by clicking on the image below.

 

TAC Engaged.png

 

 

 

Dennis Smith
Manager Brocade Communities
@DennisMSmith

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook