File tree 5 files changed +38
-12
lines changed
5 files changed +38
-12
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,24 @@ config:
110
110
ping :
111
111
test : True
112
112
113
+ vlan :
114
+ test : True
115
+ options :
116
+ compare :
117
+ id : True
118
+ name : False
119
+ vrf_name : False
120
+ ipv4_addresses : False
121
+ ipv6_addresses : False
122
+ assigned_ports : False
123
+ print :
124
+ id : True
125
+ name : True
126
+ vrf_name : True
127
+ ipv4_addresses : True
128
+ ipv6_addresses : True
129
+ assigned_ports : True
130
+
113
131
vrf :
114
132
test : False
115
133
options :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def to_json(self):
42
42
return ret
43
43
else :
44
44
return {
45
- "ip_address" : str ( self .ip_address ) ,
45
+ "ip_address" : self .ip_address ,
46
46
"netmask" : self .netmask
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ def to_json(self):
59
59
if self .options .get (PRINT_OPTION_KEY ).get ('vrf_name' , True ):
60
60
ret ['vrf_name' ] = self .vrf_name
61
61
if self .options .get (PRINT_OPTION_KEY ).get ('ipv4_addresses' , True ):
62
- ret ['ipv4_addresses' ] = self .ipv4_addresses
62
+ ret ['ipv4_addresses' ] = self .ipv4_addresses . to_json ()
63
63
if self .options .get (PRINT_OPTION_KEY ).get ('ipv6_addresses' , True ):
64
- ret ['ipv6_addresses' ] = self .ipv6_addresses
64
+ ret ['ipv6_addresses' ] = self .ipv6_addresses . to_json ()
65
65
if self .options .get (PRINT_OPTION_KEY ).get ('assigned_ports' , True ):
66
66
ret ['assigned_ports' ] = self .assigned_ports
67
67
return ret
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " netests"
3
- version = " 0.2.2 "
3
+ version = " 0.3.0 "
4
4
description = " Test your Network"
5
5
authors = [
" Dylan Hamel <[email protected] >" ]
6
6
maintainers = [
" Netests Team <[email protected] >" ]
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ def step_impl(context):
12
12
[
13
13
"./netests/welcome.py" ,
14
14
"--show-data-model" ,
15
- "bgp" ]
15
+ "bgp"
16
+ ]
16
17
)
17
18
18
19
@then (u'I print BGP data model' )
@@ -31,7 +32,8 @@ def step_impl(context):
31
32
[
32
33
"./netests/welcome.py" ,
33
34
"--show-data-model" ,
34
- "cdp" ]
35
+ "cdp"
36
+ ]
35
37
)
36
38
37
39
@@ -51,7 +53,8 @@ def step_impl(context):
51
53
[
52
54
"./netests/welcome.py" ,
53
55
"--show-data-model" ,
54
- "facts" ]
56
+ "facts"
57
+ ]
55
58
)
56
59
57
60
@@ -71,7 +74,8 @@ def step_impl(context):
71
74
[
72
75
"./netests/welcome.py" ,
73
76
"--show-data-model" ,
74
- "lldp" ]
77
+ "lldp"
78
+ ]
75
79
)
76
80
77
81
@@ -91,7 +95,8 @@ def step_impl(context):
91
95
[
92
96
"./netests/welcome.py" ,
93
97
"--show-data-model" ,
94
- "ospf" ]
98
+ "ospf"
99
+ ]
95
100
)
96
101
97
102
@@ -111,7 +116,8 @@ def step_impl(context):
111
116
[
112
117
"./netests/welcome.py" ,
113
118
"--show-data-model" ,
114
- "ping" ]
119
+ "ping"
120
+ ]
115
121
)
116
122
117
123
@@ -131,7 +137,8 @@ def step_impl(context):
131
137
[
132
138
"./netests/welcome.py" ,
133
139
"--show-data-model" ,
134
- "vlan" ]
140
+ "vlan"
141
+ ]
135
142
)
136
143
137
144
@@ -151,7 +158,8 @@ def step_impl(context):
151
158
[
152
159
"./netests/welcome.py" ,
153
160
"--show-data-model" ,
154
- "vrf" ]
161
+ "vrf"
162
+ ]
155
163
)
156
164
157
165
You can’t perform that action at this time.
0 commit comments