@@ -8,16 +8,46 @@ namespace OpenStack.Networking.v2
88 public class PortListOptions : FilterOptions
99 {
1010 /// <summary>
11- /// Filter by the associated device identifier
11+ /// Filter by the associated device identifier.
1212 /// </summary>
1313 public Identifier DeviceId { get ; set ; }
1414
15+ /// <summary>
16+ /// Filter by the entity that is using the port.
17+ /// </summary>
18+ public Identifier DeviceOwner { get ; set ; }
19+
20+ /// <summary>
21+ /// Filter by the associated network.
22+ /// </summary>
23+ public Identifier NetworkId { get ; set ; }
24+
25+ /// <summary>
26+ /// Filter by the MAC address.
27+ /// </summary>
28+ public string MACAddress { get ; set ; }
29+
30+ /// <summary>
31+ /// Filter by the port status.
32+ /// </summary>
33+ public PortStatus Status { get ; set ; }
34+
35+ /// <summary>
36+ /// Filter by the port name.
37+ /// </summary>
38+ public string Name { get ; set ; }
39+
1540 /// <summary />
1641 protected override IDictionary < string , object > BuildQueryString ( )
1742 {
1843 var queryString = new Dictionary < string , object >
1944 {
20- [ "device_id" ] = DeviceId
45+ [ "device_id" ] = DeviceId ,
46+ [ "device_owner" ] = DeviceOwner ,
47+ [ "network_id" ] = NetworkId ,
48+ [ "mac_address" ] = MACAddress ,
49+ [ "status" ] = Status ,
50+ [ "display_name" ] = Name
2151 } ;
2252
2353 return queryString ;
0 commit comments