
********************************************************************************
* Copyright (C) 2019-2024 by Extreme Networks , Inc.                           *
* This file is part of ncBreeze Dump                                            *
*                                                                              *
* Author: Pradeep Raj.                                                         *
*                                                                              *
*                                                                              *
* Disclaimer:                                                                  *
* 1. The queries mentioned here do not have a one-to-one correlation with CLI. *
* 2. The queries inferred here are based on an automated tool and are not      *
*    gauranteed to work. Its the functional teams responsibilty to ensure its  *
*    working.                                                                  *
* 3. In case if you find any discrepancy you can always contact the author to  *
*    get it fixed.                                                             *
* 4. Avoid giving multiple Hello requests if you are using ssh to open a       *
*    session and perform netconf requests.                                     *
* 4. Avoid using the requests with [DO NOT USE] tag in the payload. These could*
*    be defective because of the tailf extensions they have.                   *
********************************************************************************
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<dom-name>
						<domain-name>%string%</domain-name>
					</dom-name>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<name-server>
						<name-server-ip>%inet:ip-address%</name-server-ip>
						<use-vrf>%common-def:use-vrf%</use-vrf>
					</name-server>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
[DO NOT USE]
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<name-server>
						<name-server-ip>%req_val%</name-server-ip>
						<use-vrf>%req_val%</use-vrf>
						<source-interface>
							<ethernet>
								<source-intf-type>%source-interface-type%</source-intf-type>
								<source-intf-name>%ethernet-iftype%</source-intf-name>
							</ethernet>
						</source-interface>
					</name-server>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
[DO NOT USE]
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<source-intf-type xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
				<ethernet>
					<source-intf-name>%ethernet-iftype%</source-intf-name>
				</ethernet>
			</source-intf-type>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
[DO NOT USE]
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<name-server>
						<name-server-ip>%req_val%</name-server-ip>
						<use-vrf>%req_val%</use-vrf>
						<source-interface>
							<loopback>
								<source-intf-name>%loopback-iftype%</source-intf-name>
							</loopback>
						</source-interface>
					</name-server>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
[DO NOT USE]
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<name-server>
						<name-server-ip>%req_val%</name-server-ip>
						<use-vrf>%req_val%</use-vrf>
						<source-interface>
							<ve>
								<source-intf-name>%ve-iftype%</source-intf-name>
							</ve>
						</source-interface>
					</name-server>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
[DO NOT USE]
<?xml version="1.0" ?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<capabilities>
		<capability>urn:ietf:params:netconf:base:1.0</capability>
	</capabilities>
</hello>
]]>]]>
<?xml version="1.0" ?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">
				<dns xmlns="urn:brocade.com:mgmt:brocade-ip-administration">
					<name-server>
						<name-server-ip>%req_val%</name-server-ip>
						<use-vrf>%req_val%</use-vrf>
						<source-interface>
							<management>
								<source-intf-name>%mm-iftype%</source-intf-name>
							</management>
						</source-interface>
					</name-server>
				</dns>
			</ip>
		</config>
	</edit-config>
</rpc>
]]>]]>
---------------------------------------------------------
