Brocade Network OS NETCONF Operations Guide v4.1.1 Manual do Utilizador Página 50

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 622
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 49
18 Network OS NETCONF Operations Guide
53-1003231-02
Editing the configuration
2
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="209">
<nca:action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">
<nca:data>
<show xmlns="urn:brocade.com:mgmt:brocade-common-def">
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone"/>
</show>
</nca:data>
</nca:action>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="209">
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">
<db-max>1045274</db-max>
<db-avail>1043895</db-avail>
<db-committed>367</db-committed>
<db-transaction>373</db-transaction>
<transaction-token>1</transaction-token>
<last-zone-changed-timestamp>2011-11-16 16:54:31 GMT-7:00
</last-zone-changed-timestamp>
<last-zone-committed-timestamp>2011-11-16 16:23:44 GMT-7:0
</last-zone-committed-timestamp>
</zoning>
</rpc-reply>
For a list of available actions and their locations, refer to the Network OS YANG Reference Manual.
Editing the configuration
All configuration editing is done using the merge or delete operations of the <edit-config> RPC. The
create and replace operations are not supported. Refer to RFC 4741, The NETCONF Protocol, for
details about these operations.
NOTE
Every NETCONF <edit-config> request should have a one-to-one mapping with a Brocade command.
You cannot combine two CLI operations into one NETCONF request.
The following example of the default merge operation adds a static address to the MAC address
table. The operation is performed on the running configuration and configures the
<mac-address-table> node in the urn:brocade.com:mgmt:brocade-mac-address-table namespace.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="210" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<mac-address-table
xmlns="urn:brocade.com:mgmt:brocade-mac-address-table">
<static>
<mac-address>0011.2222.3333</mac-address>
<forward>forward</forward>
<interface-type>tengigabitethernet</interface-type>
<interface-name>66/0/1</interface-name>
<vlan>vlan</vlan>
<vlanid>100</vlanid>
Vista de página 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 621 622

Comentários a estes Manuais

Sem comentários