File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def create
37
37
xml . GATEWAY resource [ :gateway ] if resource [ :gateway ]
38
38
xml . NETWORK_MASK resource [ :netmask ] if resource [ :netmask ]
39
39
xml . NETWORK_ADDRESS resource [ :network_address ] if resource [ :network_address ]
40
+ xml . MTU resource [ :mtu ] if resource [ :mtu ]
40
41
xml . CONTEXT resource [ :context ] . each { |k , v | xml . send ( k . upcase , v ) } if resource [ :context ]
41
42
end
42
43
end
@@ -75,6 +76,7 @@ def self.instances
75
76
:gateway => ( vnet . xpath ( './TEMPLATE/GATEWAY' ) . text unless vnet . xpath ( './TEMPLATE/GATEWAY' ) . nil? ) ,
76
77
:netmask => ( vnet . xpath ( './TEMPLATE/NETWORK_MASK' ) . text unless vnet . xpath ( './TEMPLATE/NETWORK_MASK' ) . nil? ) ,
77
78
:network_address => ( vnet . xpath ( './TEMPLATE/NETWORK_ADDRESS' ) . text unless vnet . xpath ( './TEMPLATE/NETWORK_ADDRESS' ) . nil? ) ,
79
+ :mtu => ( vnet . xpath ( './TEMPLATE/MTU' ) . text unless vnet . xpath ( './TEMPLATE/MTU' ) . nil? ) ,
78
80
:model => ( vnet . xpath ( './TEMPLATE/MODEL' ) . text unless vnet . xpath ( './TEMPLATE/MODEL' ) . nil? )
79
81
)
80
82
end
Original file line number Diff line number Diff line change 57
57
desc "Gateway for network"
58
58
end
59
59
60
+ newproperty ( :mtu ) do
61
+ desc "MTU for network"
62
+ end
63
+
60
64
newproperty ( :context ) do
61
65
desc "A hash of context information to also store in the template."
62
66
end
You can’t perform that action at this time.
0 commit comments