[bind10-dev] Format for the Packet Between BigTool and Configure Manager

ZhangLikun zhanglikun at cnnic.cn
Tue Sep 22 03:04:03 UTC 2009


Sorry, I should cc this email to the dev-list when I sent it to Michael, do
it now, :)

 

  _____  

Hi Michael:

Below is the draft format for packet between BigTool and Configure Manager.
I prefer to use tcp for the packet. 

 

<!--> Format for packet from BigTool to configure manager <-->

<command name = "" type = "class/instance">

    <object module = "" class = "" instance = "">

        <parameters count = "">

            <parameter name = "" value = "" type = />            

        </parameters>

    </object>

</command>

 

<!--> Format for packet from Configure Manager to BigTool <-->

<reply status = "bad/ok">

    <answers count = "">

        <answer value = "" type = "" />

    </answers>

</reply>

 

When command's type is class, the attribute "instance" for "object" node can
be ignored.

 

Usage example:

--Get all the zones' name

      ----Packet format

          <command name = "get_all_zone_name" type = class>

              <object module = "zone_manager" class = "zone" >

                  <parameters count = "0" />

              </object>

          </command>

     

      ----Answer

          <reply status = "ok">

              <answers count = 2>

                  <answer value = "example.com" type = "string" />

                  <answer value = "cnnic.cn" type = "string">

              <answers>

          </reply>

           

--Set master for zone "example.com"  

      ----Packet format

          <command name = "set" type = instance>

              <object module = "zone_manager" class = "zone" instance =
"example.com">

                  <parameters count = "1" >

                      <parameter name = "master" value = "1.2.3.4" type =
"string"/>           

                  </parameters>

              </object>

          </command>

     

      ----Answer

          <reply status = "ok">

              <answers count = 0 /> 

          </reply>

 

 

My question: How many value types do we need to support? int, string and
list? any others?

Welcome any comment on the format. Thank you.

 

ZhangLikun

CNNIC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20090922/8f523415/attachment.html>


More information about the bind10-dev mailing list