Skip to content

List of Subnets within one Virtual Network not working (wrong method call) #394

@maximdorko

Description

@maximdorko

When I would like to get the list of all subnets within a Virtual Network, it's not working, because 2 methods are wrong:

Line 214: self.network_client.subnets.get used instead of self.network_client.subnets.list and for "get" Subnet name is mandatory.
Please check: https://docs.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.v2020_06_01.operations.subnetsoperations?view=azure-python#list-resource-group-name--virtual-network-name----kwargs-

Line 222: results.append(self.format_item(item)) format_item is not defined. If I change it to format_result it's working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions